Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tag and function name based lookup "tables" #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

whytheplatypus
Copy link

Thinking that this could be used to let other aspects of a program interact with a cache based on function name or a given tag. (e.g. reset all cache's tagged with a certain model name)

No idea if it works, still have to figure out the tests.

Thinking that this could be used to let other aspects of a program interact with a cache based on function name or a given tag. (e.g. reset all cache's tagged with a certain model name)
@alexk307
Copy link
Owner

alexk307 commented May 4, 2016

This won't work currently because I've rolled my own Redis client, so those functions you've added (sadd, delete) are not implemented yet. Decided to write my own Redis client as an exercise, not for any specific reason. Should be easy to add those methods if that's the way we want to do it.

I like the idea; there is no way currently to reset the cache. I was thinking something along the lines of giving it a Django model or any object implementing an interface with a last_modified type field to invalidate the cache.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants