From 698a04dd35c16f29430ae42fa7e774fcccd9b718 Mon Sep 17 00:00:00 2001 From: Marco Bonetti Date: Fri, 12 Apr 2019 16:06:13 +0200 Subject: [PATCH] =?UTF-8?q?No=20need=20to=20lower=20keys,=20after=20all?= =?UTF-8?q?=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rosetta/storage.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rosetta/storage.py b/rosetta/storage.py index 30ca534..cbe8c98 100644 --- a/rosetta/storage.py +++ b/rosetta/storage.py @@ -96,19 +96,19 @@ class CacheRosettaStorage(BaseRosettaStorage): def get(self, key, default=None): # print ('get', self._key_prefix + key) - return cache.get((self._key_prefix + key).lower(), default) + return cache.get(self._key_prefix + key, default) def set(self, key, val): # print ('set', self._key_prefix + key) - cache.set((self._key_prefix + key).lower(), val, 86400) + cache.set(self._key_prefix + key, val, 86400) def has(self, key): # print ('has', self._key_prefix + key) - return (self._key_prefix + key).lower() in cache + return (self._key_prefix + key) in cache def delete(self, key): # print ('del', self._key_prefix + key) - cache.delete((self._key_prefix + key).lower()) + cache.delete(self._key_prefix + key) def get_storage(request):