dataset/seed/redis/funcs/redis.py

9 lines
249 B
Python
Raw Normal View History

2023-06-23 08:10:03 +02:00
def redis_index_of(remotes, suffix):
return remotes.index(suffix)
def redis_only_one(idx):
if idx:
# see https://github.com/redis/redis/issues/8099#issuecomment-741868975
raise Exception('Redis only works for one service')