Metadata-Version: 1.1
Name: PyLocache
Version: 0.0.4
Summary: PyLocache is a Python implementation of LRU local cache.
Home-page: https://github.com/psjay/PyLocache
Author: psjay
Author-email: psjay.peng@gmail.com
License: WTFPL
Description: PyLocache
        ===============
        
        .. image:: https://travis-ci.org/psjay/PyLocache.svg?branch=master
        
        PyLocache is a Python implementation of LRU local cache.
        
        Features
        ==============
        
        * Memcache-like APIs.
        * Thread safe.
        * Expiration support.
        
        Installation
        ===============
        
        ::
        
          $ pip install pylocache
        
        `virtualenv <https://pypi.python.org/pypi/virtualenv>`_ is strongly recommended.
        
        Usage
        ===============
        
        ::
        
          from pylocache import LocalCache
        
        
          cache = LocalCache(max_size=5)
          cache.set('foo', 1)
          cache.set('bar', 2)
        
          cache.get('foo')  # 1
        
          cache.set('hello', 'world', expires=3)  # expires in 3 seconds.
        
          # All items of it will be expired in 2 seconds after being set.
          volatile_cache = LocalCache(max_size=5, expires=2)
        
        
        Change History
        ==============
        
        0.0.3
        ----------------
        
        * Fixed installation bug.
        
        0.0.2
        ----------------
        
        * Added delete method.
        
Platform: UNKNOWN
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Operating System :: OS Independent
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Utilities
