Python Forum

Full Version: CACHING
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
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 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
Here's a recipie to examine: http://code.activestate.com/recipes/5230...ed-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/5230...ed-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/5230...ed-access/ (active state python, but generic)
thank you so much.it was helpful
(Jun-22-2018, 06:48 PM)Larz60+ Wrote: [ -> ]Here's a recipie to examine: http://code.activestate.com/recipes/5230...ed-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"
I only skimmed the link before recommending, but I haven't implemented it.