Skip to content
This repository has been archived by the owner on Mar 2, 2019. It is now read-only.
/ filecachetools Public archive

DEPRECATED cachetools compatible persistent cache

Notifications You must be signed in to change notification settings

xi/filecachetools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

filecachetools - cachetools compatible persistent cache:

from filecachetools import lru_cache

@lru_cache('complex_computation')
def complex_computation(a, b):
    return a + b

This example will create a directory ~/.cache/complex_computation/ where it will create a cache file for each set of arguments to the function. This way, the cache will persist accross runs of the program.

About

DEPRECATED cachetools compatible persistent cache

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages