Skip to main content

Pythonic way of Caching Computations(LRU caching module)

Project description


Pycache is a LRU Implemented with Linked Stack.


git clone

cd pycache

python install



You can use pycache as both object as well as a decorator

from pycache import cached
from pycache import Cache

cache = Cache()

def add(x,y):
return x+y

#operation will be computed and stored on cache
print add(2,3)

#will be retrived from cache

# As a cache object
c = Cache()

c.insert(key, value)
c.update(key, value)




Project details

Release history Release notifications | RSS feed

This version


Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page