Clean code and fix #121

This commit is contained in:
dmunozv04
2023-12-29 16:19:44 +01:00
parent 35652b6247
commit c3fd67df27
12 changed files with 151 additions and 98 deletions

View File

@@ -1,3 +1,7 @@
from cache.key import KEY
from cache.lru import LRU
import datetime
"""MIT License
Copyright (c) 2020 Rajat Singh
@@ -21,10 +25,6 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE."""
'''Modified code from https://github.com/iamsinghrajat/async-cache'''
from cache.key import KEY
from cache.lru import LRU
import datetime
class AsyncConditionalTTL:
class _TTL(LRU):