@@ -22,7 +22,7 @@ class RedisSplitStorage(SplitStorage):
2222 _FEATURE_FLAG_KEY = 'SPLITIO.split.{feature_flag_name}'
2323 _FEATURE_FLAG_TILL_KEY = 'SPLITIO.splits.till'
2424 _TRAFFIC_TYPE_KEY = 'SPLITIO.trafficType.{traffic_type_name}'
25- _SET_KEY = 'SPLITIO.flagSet.{flag_set}'
25+ _FLAG_SET_KEY = 'SPLITIO.flagSet.{flag_set}'
2626
2727 def __init__ (self , redis_client , enable_caching = False , max_age = DEFAULT_MAX_AGE , config_flag_sets = []):
2828 """
@@ -63,7 +63,7 @@ def _get_traffic_type_key(self, traffic_type_name):
6363 """
6464 return self ._TRAFFIC_TYPE_KEY .format (traffic_type_name = traffic_type_name )
6565
66- def _get_set_key (self , flag_set ):
66+ def _get_flag_set_key (self , flag_set ):
6767 """
6868 Use the provided flag set to build the appropriate redis key.
6969
@@ -73,7 +73,7 @@ def _get_set_key(self, flag_set):
7373 :return: Redis key.
7474 :rtype: str.
7575 """
76- return self ._SET_KEY .format (flag_set = flag_set )
76+ return self ._FLAG_SET_KEY .format (flag_set = flag_set )
7777
7878 def get (self , feature_flag_name ): # pylint: disable=method-hidden
7979 """
@@ -110,7 +110,7 @@ def get_feature_flags_by_sets(self, flag_sets):
110110 if sets_to_fetch == []:
111111 return []
112112
113- keys = [self ._get_set_key (flag_set ) for flag_set in sets_to_fetch ]
113+ keys = [self ._get_flag_set_key (flag_set ) for flag_set in sets_to_fetch ]
114114 pipe = self ._pipe ()
115115 [pipe .smembers (key ) for key in keys ]
116116 result_sets = pipe .execute ()
0 commit comments