diff --git a/lazyblacksmith/__init__.py b/lazyblacksmith/__init__.py index 86baff6..e92cf38 100644 --- a/lazyblacksmith/__init__.py +++ b/lazyblacksmith/__init__.py @@ -1,2 +1,2 @@ # -*- encoding: utf-8 -*- -__version__ = '1.0.3' +__version__ = '1.0.4' diff --git a/lazyblacksmith/extension/cache.py b/lazyblacksmith/extension/cache.py index 0ee3874..d6152f0 100644 --- a/lazyblacksmith/extension/cache.py +++ b/lazyblacksmith/extension/cache.py @@ -11,8 +11,8 @@ class LbCache(BaseCache): def __init__(self, lb_cache): self.cache = lb_cache - def set(self, key, value): - self.cache.set(_hash(key), value) + def set(self, key, value, expire=300): + self.cache.set(_hash(key), value, expire) def get(self, key, default=None): cached = self.cache.get(_hash(key)) @@ -23,4 +23,4 @@ def invalidate(self, key): CACHE = Cache() -LBCACHE = LbCache(CACHE) \ No newline at end of file +LBCACHE = LbCache(CACHE) diff --git a/requirements/global-requirements.txt b/requirements/global-requirements.txt index 0e7c21c..7c104b5 100644 --- a/requirements/global-requirements.txt +++ b/requirements/global-requirements.txt @@ -22,4 +22,4 @@ ratelimiter>=1.1.0 simplejson>=3.17.0 # EVE API Libs -EsiPy>=1.0.0 +EsiPy>=1.2.0