File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -17,9 +17,20 @@ class EvictionPolicyType(Enum):
17
17
18
18
@dataclass (frozen = True )
19
19
class CacheKey :
20
+ """
21
+ Represents a unique key for a cache entry.
22
+
23
+ Attributes:
24
+ command (str): The Redis command being cached.
25
+ redis_keys (tuple): The Redis keys involved in the command.
26
+ redis_args (tuple): Additional arguments for the Redis command.
27
+ This field is included in the cache key to ensure uniqueness
28
+ when commands have the same keys but different arguments.
29
+ Changing this field will affect cache key uniqueness.
30
+ """
20
31
command : str
21
32
redis_keys : tuple
22
- redis_args : tuple = ()
33
+ redis_args : tuple = () # Additional arguments for the Redis command; affects cache key uniqueness.
23
34
24
35
25
36
class CacheEntry :
You can’t perform that action at this time.
0 commit comments