Skip to content

Commit

Permalink
add missing timeout from esipy 1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyria committed Aug 16, 2020
1 parent e0521d5 commit abb6048
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lazyblacksmith/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# -*- encoding: utf-8 -*-
__version__ = '1.0.3'
__version__ = '1.0.4'
6 changes: 3 additions & 3 deletions lazyblacksmith/extension/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand All @@ -23,4 +23,4 @@ def invalidate(self, key):


CACHE = Cache()
LBCACHE = LbCache(CACHE)
LBCACHE = LbCache(CACHE)
2 changes: 1 addition & 1 deletion requirements/global-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ ratelimiter>=1.1.0
simplejson>=3.17.0

# EVE API Libs
EsiPy>=1.0.0
EsiPy>=1.2.0

0 comments on commit abb6048

Please sign in to comment.