Store opaque bytes under stable logical keys.
More...
|
| bytes|None | get (self, str key) |
| | Return cached bytes or None when the key is absent.
|
| None | put (self, str key, bytes data) |
| | Atomically store bytes under a logical key.
|
| bool | remove (self, str key) |
| | Remove a key if present.
|
Store opaque bytes under stable logical keys.
◆ get()
| bytes | None cache.persistent_cache_if.PersistentCacheIf.get |
( |
| self, |
|
|
str | key ) |
Return cached bytes or None when the key is absent.
- Parameters
-
| key | Non-empty logical cache key. |
- Returns
- Stored bytes or None.
◆ put()
| None cache.persistent_cache_if.PersistentCacheIf.put |
( |
| self, |
|
|
str | key, |
|
|
bytes | data ) |
Atomically store bytes under a logical key.
- Parameters
-
| key | Non-empty logical cache key. |
| data | Bytes to persist. |
◆ remove()
| bool cache.persistent_cache_if.PersistentCacheIf.remove |
( |
| self, |
|
|
str | key ) |
Remove a key if present.
- Parameters
-
| key | Non-empty logical cache key. |
- Return values
-
| True | A stored entry was removed. |
| False | The key was absent. |
The documentation for this class was generated from the following file:
- controllers/cache/persistent_cache_if.py