Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 9a47ace9f8
Fetching contributors…

Cannot retrieve contributors at this time

20 lines (15 sloc) 0.525 kB
class CachedModelException(Exception): pass
# Our invalidation classes
class CacheInvalidationWarning(CachedModelException): pass
class CacheMissingWarning(CacheInvalidationWarning):
"""
CacheMissingWarning is thrown when we're trying to fetch a queryset
and it's missing objects in the database.
"""
pass
class CacheExpiredWarning(CacheInvalidationWarning):
"""
CacheExpiredWarning is thrown when we're trying to fetch from the cache
but the pre-expiration has been hit.
"""
pass
Jump to Line
Something went wrong with that request. Please try again.