Show More
@@ -98,7 +98,7 b' class PickleSerializer:' | |||
|
98 | 98 | ) |
|
99 | 99 | |
|
100 | 100 | |
|
101 |
class MsgPackSerializer |
|
|
101 | class MsgPackSerializer: | |
|
102 | 102 | serializer: None | Serializer = staticmethod( # type: ignore |
|
103 | 103 | msgpack.packb |
|
104 | 104 | ) |
@@ -291,7 +291,7 b' class RedisMsgPackBackend(MsgPackSeriali' | |||
|
291 | 291 | def get_mutex_lock(client, lock_key, lock_timeout, auto_renewal=False): |
|
292 | 292 | from rhodecode.lib._vendor import redis_lock |
|
293 | 293 | |
|
294 |
class _RedisLockWrapper |
|
|
294 | class _RedisLockWrapper: | |
|
295 | 295 | """LockWrapper for redis_lock""" |
|
296 | 296 | |
|
297 | 297 | @classmethod |
@@ -45,7 +45,7 b' def isCython(func):' | |||
|
45 | 45 | class RhodeCodeCacheRegion(CacheRegion): |
|
46 | 46 | |
|
47 | 47 | def __repr__(self): |
|
48 | return f'{self.__class__}(name={self.name})' | |
|
48 | return f'`{self.__class__.__name__}(name={self.name}, backend={self.backend.__class__})`' | |
|
49 | 49 | |
|
50 | 50 | def conditional_cache_on_arguments( |
|
51 | 51 | self, namespace=None, |
@@ -250,7 +250,6 b' def clear_cache_namespace(cache_region: ' | |||
|
250 | 250 | |
|
251 | 251 | if method == CLEAR_DELETE: |
|
252 | 252 | num_affected_keys = cache_region.backend.delete_multi_by_prefix(prefix=cache_namespace_uid) |
|
253 | ||
|
254 | 253 | return num_affected_keys |
|
255 | 254 | |
|
256 | 255 |
General Comments 0
You need to be logged in to leave comments.
Login now