![]() |
CACHING - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: Web Scraping & Web Development (https://python-forum.io/forum-13.html) +--- Thread: CACHING (/thread-11103.html) |
CACHING - saisankalpj - Jun-22-2018 HI I WANT TO KNOW HOW CAN WE READ A INFORMATION FROM FILE AND STORE IT IN CACHE SO THAT THE FILE NEXT TIME READS ONLY WHEN THE MATTER IN CACHE HAS CHANGED IN PYTHON 2.7.4 RE: CACHING - Larz60+ - Jun-22-2018 FYI capital letters are considered shouting in forums. Refrain from use in future posts. Be a bit more specific in your desired goal. Also, tell us (show code) what you have tried so far, and where it goes wrong (if you can). RE: CACHING - saisankalpj - Jun-22-2018 I havent tried any solution as i am new to python language so need help regarding caching (Jun-22-2018, 06:10 PM)Larz60+ Wrote: FYI capital letters are considered shouting in forums. Refrain from use in future posts. Be a bit more specific in your desired goal. Also, tell us (show code) what you have tried so far, and where it goes wrong (if you can). i am new to python so i havent tried and need help regarding caching RE: CACHING - Larz60+ - Jun-22-2018 Here's a recipie to examine: http://code.activestate.com/recipes/52300-cache-file-contents-to-speed-access/ (active state python, but generic) RE: CACHING - saisankalpj - Jun-23-2018 (Jun-22-2018, 06:48 PM)Larz60+ Wrote: Here's a recipie to examine: http://code.activestate.com/recipes/52300-cache-file-contents-to-speed-access/ (active state python, but generic) (Jun-22-2018, 06:48 PM)Larz60+ Wrote: Here's a recipie to examine: http://code.activestate.com/recipes/52300-cache-file-contents-to-speed-access/ (active state python, but generic)thank you so much.it was helpful RE: CACHING - saisankalpj - Jun-25-2018 (Jun-22-2018, 06:48 PM)Larz60+ Wrote: Here's a recipie to examine: http://code.activestate.com/recipes/52300-cache-file-contents-to-speed-access/ (active state python, but generic)Hi i have implemented the above code from the link. but are we using any cache memory in the link which u send or is it only dictionary like "self.filecache" RE: CACHING - Larz60+ - Jun-25-2018 I only skimmed the link before recommending, but I haven't implemented it. |