Caching¶
Classes¶
Cache¶
Interface for uWSGI Caching subsystem.
Warning
To use this helper one needs to configure cache(s) in uWSGI config beforehand.
1 | |
decr¶
Decrements the specified key value by the specified value.
delete¶
div¶
Divides the specified key value by the specified value.
get¶
-
The cache key to get value for.
-
Value to return if none found in cache.
-
Return 64bit number instead of a str. To be used with
incr,decr,mul,div. -
Setter callable to automatically set cache value if not already cached. Required to accept a key and return a value that will be cached.
-
If True, bytes representation is returned.
Gets a value from the cache.
incr¶
Increments the specified key value by the specified value.
mul¶
Multiplies the specified key value by the specified value.
set¶
-
Cache key to set.
-
Value to store in cache. !!! note This value will be casted to str->bytes (as uWSGI cache works with bytes-like objects).
-
0 not to expire. Object default is used if not set.
Sets the specified key value.