youknowone / ring

Python cache interface with clean API and built-in memcache & redis + asyncio support.
http://ring-cache.readthedocs.io/en/latest/
Other
480 stars 37 forks source link

Add expire on LRU cache #121

Closed JimJeon closed 5 years ago

JimJeon commented 5 years ago

Also fixes lru delete method.

closes #107

JimJeon commented 5 years ago

This PR fixes #107

JimJeon commented 5 years ago

Python 2.7 Build fails, I'll fix it.

youknowone commented 5 years ago

Thanks! It seems everything goes well. Installing this module for py2 will work: https://pypi.org/project/mock/

JimJeon commented 5 years ago

It was already in the setup.py package list. I just added some compatibility codes.

codecov[bot] commented 5 years ago

Codecov Report

Merging #121 into master will increase coverage by 0.03%. The diff coverage is 100%.

@@            Coverage Diff             @@
##           master     #121      +/-   ##
==========================================
+ Coverage   98.06%   98.08%   +0.03%     
==========================================
  Files          14       14              
  Lines        1442     1461      +19     
==========================================
+ Hits         1414     1433      +19     
  Misses         28       28
youknowone commented 5 years ago

0.7.2 is released which includes this change. Thanks!