set method
set
Inserts a cache entry into the cache.
def set(self, key, value):
...
| Parameter | Type | Description |
|---|---|---|
| key | str |
A unique identifier for the cache entry. |
| value | Any |
The object to insert. |
See Also
- class
MemoryCache
Inserts a cache entry into the cache.
def set(self, key, value):
...
| Parameter | Type | Description |
|---|---|---|
| key | str |
A unique identifier for the cache entry. |
| value | Any |
The object to insert. |
MemoryCache