@@ -18,16 +18,16 @@ def get(self, key: str):
1818 """
1919 Get cached value if exists, else return None.
2020
21- :param key: cache key
21+ :param key: cache_services key
2222 """
2323 raise NotImplementedError ("Method is not implemented" )
2424
2525 def put (self , key : str , value ):
2626 """
27- Put object to cache .
27+ Put object to cache_services .
2828
29- :param key: cache key
30- :param value: cache value
29+ :param key: cache_services key
30+ :param value: cache_services value
3131 """
3232 raise NotImplementedError ("Method is not implemented" )
3333
@@ -44,7 +44,7 @@ def get(self, key: str):
4444 """
4545 Get cached value if exists, else return None.
4646
47- :param key: cache key
47+ :param key: cache_services key
4848 """
4949
5050 if key not in self .cache .keys ():
@@ -64,10 +64,10 @@ def get_with_level(self, keys: [str]):
6464
6565 def put (self , key : str , value ):
6666 """
67- Put object to cache .
67+ Put object to cache_services .
6868
69- :param key: cache key
70- :param value: cache value
69+ :param key: cache_services key
70+ :param value: cache_services value
7171 """
7272
7373 self .cache [key ] = value
@@ -90,7 +90,7 @@ def _create_key(self, keys: [str]):
9090class JsonStoreService (InMemoryStoreService ):
9191
9292 def __init__ (self , filename = 'cache.json' , separator = '.' ):
93- super ().__init__ (separator )
93+ super ().__init__ (separator = separator )
9494 mem_cache = {}
9595 if os .path .isfile (filename ):
9696 mem_cache = read_json (filename )
@@ -100,10 +100,10 @@ def __init__(self, filename='cache.json', separator='.'):
100100
101101 def put (self , key : str , value ):
102102 """
103- Put object to cache .
103+ Put object to cache_services .
104104
105- :param key: cache key
106- :param value: cache value
105+ :param key: cache_services key
106+ :param value: cache_services value
107107 """
108108 super ().put (key , value )
109109 write_json (self .filename , self .cache )
@@ -132,7 +132,7 @@ def flush(self):
132132class FastJsonStoreService (FastStoreService ):
133133
134134 def __init__ (self , filename = 'cache.json' , separator = '.' ):
135- super ().__init__ (separator )
135+ super ().__init__ (separator = separator )
136136 mem_cache = {}
137137 if os .path .isfile (filename ):
138138 mem_cache = read_json (filename )
0 commit comments