This commit is contained in:
@@ -61,7 +61,7 @@ await TokenStorage.revoke_session(token)
|
||||
|
||||
#### Обновленный API:
|
||||
```python
|
||||
from services.redis import redis
|
||||
from storage.redis import redis
|
||||
|
||||
# Базовые операции
|
||||
await redis.get(key)
|
||||
@@ -190,7 +190,7 @@ compat = CompatibilityMethods()
|
||||
await compat.get(token_key)
|
||||
|
||||
# Стало
|
||||
from services.redis import redis
|
||||
from storage.redis import redis
|
||||
result = await redis.get(token_key)
|
||||
```
|
||||
|
||||
@@ -263,7 +263,7 @@ pytest tests/auth/ -v
|
||||
# Проверка Redis подключения
|
||||
python -c "
|
||||
import asyncio
|
||||
from services.redis import redis
|
||||
from storage.redis import redis
|
||||
async def test():
|
||||
result = await redis.ping()
|
||||
print(f'Redis connection: {result}')
|
||||
|
||||
Reference in New Issue
Block a user