Skip to content

kevinslin/simplecache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

General
=======
This is a simple cache to store that persists even after a program has terminated.
The default location to store cached items is in a ".cache" folder in the current
directory. This can be set by setting the SIMPLECACHE_DIR attribute

Methods:
========

cache(func [, *args ])
    Places an expensive function into a cache

clear_cache
    Clears the cache

cache_put(obj, key)
    Put in cache under key value

cache_get(key)
    Get a cache via a key


@memoized
def fib(n):
    ...

About

Persistent caching even after program termination

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages