8 lines
249 B
Python
8 lines
249 B
Python
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')
|