style: format valkey semantic cache

This commit is contained in:
dajiaohuang 2026-09-04 14:36:08 +08:00
parent 1ecf44dc85
commit 5eb2f65380

View file

@ -24,6 +24,7 @@ from typing import Any, Final
from redis import Redis
from redis.asyncio import Redis as AsyncRedis
from redis.commands.search.field import TagField, VectorField
try: # redis-py >= 5 (module renamed to snake_case)
from redis.commands.search.index_definition import IndexDefinition, IndexType
except ModuleNotFoundError: # redis-py 4.x (last version with camelCase name)