Classes
MemoryCacheBackend
5
▼
In-process dict + TTL cache backend.
Suitable for single-process development and small apps.
Not s…
MemoryCacheBackend
5
▼
In-process dict + TTL cache backend.
Suitable for single-process development and small apps. Not shared between workers in multi-process production. Thread-safe for free-threaded Python (3.14t).
Methods
get
1
bytes | None
▼
async
get
1
bytes | None
▼
async def get(self, key: str) -> bytes | None
Parameters
| Name | Type | Description |
|---|---|---|
key |
— |
Returns
bytes | None
set
3
▼
async
set
3
▼
async def set(self, key: str, value: bytes, ttl: int = 0) -> None
Parameters
| Name | Type | Description |
|---|---|---|
key |
— |
|
value |
— |
|
ttl |
— |
Default:0
|
delete
1
▼
async
delete
1
▼
async def delete(self, key: str) -> None
Parameters
| Name | Type | Description |
|---|---|---|
key |
— |
clear
0
▼
async
clear
0
▼
async def clear(self) -> None
Internal Methods 1 ▼
__init__
0
▼
__init__
0
▼
def __init__(self) -> None