forked from jb076/django-cache-helper
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
2 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,9 @@ | ||
import abc | ||
|
||
|
||
class CacheHelperCacheable(abc.ABC): | ||
@abc.abstractmethod | ||
class CacheHelperCacheable: | ||
def get_cache_helper_key(self): | ||
""" | ||
For any two objects of the same class which are considered equal in your application, | ||
get_cache_helper_key should return the same key. This key should be unique to all objects | ||
considered equal. This key will be used as a component to the final cache key to get/set | ||
values from the cache. The key should be a string. | ||
""" | ||
pass | ||
raise NotImplementedError |