1
0
mirror of https://github.com/webrecorder/pywb.git synced 2025-03-15 00:03:28 +01:00

redisindexsource: clear member_key_type if invalid (not hash or set)

This commit is contained in:
Ilya Kreymer 2018-01-29 08:10:21 -08:00
parent 52ca95eba5
commit cd304cc2d7

View File

@ -315,6 +315,10 @@ class RedisIndexSource(BaseIndexSource):
elif self.member_key_type == b'hash':
return self.redis.hvals(key)
# don't cache if any other type
else:
self.member_key_type = None
return []
def load_index(self, params):