Jaymon / caches

Python caching backed by Redis
MIT License
6 stars 3 forks source link

better support for deleting cache #6

Closed Jaymon closed 3 years ago

Jaymon commented 8 years ago

I think del c should work, or at least del c.data, you can also add delete(), remove(), and clear() methods, basically, I can never freaking remember how to remove the cache

Jaymon commented 3 years ago

Because SetCache and DictCache follow the interfaces, I shouldn't be adding random deletion methods. But as of v2.0.0 every cache class will have a clear() method and del c.data will work on the normal Cache class.