vivekn / redis-simple-cache

Simple redis based cache for storing results of python function calls, json encoded strings or html.
Other
122 stars 69 forks source link

Update the cache_it and cache_it_json decorators to incorperate kwargs ... #18

Closed djgilcrease closed 10 years ago

djgilcrease commented 10 years ago

...for the dorcorated function, also merged the code into a single decorator since the code was almost identical just using a different serializer, fetcher and storer

vivekn commented 10 years ago

Merged with modifications. Thanks a lot!

One change I made is to cache the keyword arguments as well with out deep copying the entire graph. Ideally, a user shouldn't be providing values which have a huge reference graph. They should be simple URLs, file paths or user ids.