Skip to content

Commit bbb78e0

Browse files
author
koval
committed
Edit README.md
1 parent 6923747 commit bbb78e0

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,12 @@ Seed the JSON file once with `access_token` and `refresh_token` from Huntflow be
133133

134134
The package does **not** depend on Redis; install it separately (`pip install "redis>=4.2"` so `redis.asyncio` and async locks behave consistently). Use one async Redis client for both storage and the lock. **Populate the token key** before the first API call (same JSON shape as the file storage).
135135

136+
This example uses an accessor-style flow:
137+
`RedisTokenProxy -> RedisTokenAccessor -> storage`.
138+
`RedisTokenProxy` implements the SDK token contract, `RedisTokenAccessor` is responsible
139+
for token retrieval and update operations, and `RedisLockLocker` synchronizes refresh
140+
between concurrent requests.
141+
136142
```python
137143
import asyncio
138144
import json

0 commit comments

Comments
 (0)