python-diskcache API reference
50 public APIs from python-diskcache (grantjenks/python-diskcache) — 12 classes, 0 functions, 38 methods. Signatures extracted by static analysis of the actual source.
Repository: grantjenks/python-diskcache
| Kind | Count |
|---|---|
| Classes | 12 |
| Functions | 0 |
| Methods | 38 |
API list
class
diskcache.core.CacheDisk and file backed cache.
method
diskcache.core.Cache.clear(retry=False)Remove all items from cache.
method
diskcache.core.Cache.close()Close database connection.
method
diskcache.core.Cache.create_tag_index()Create tag index on cache database.
method
diskcache.core.Cache.directory()Cache directory.
method
diskcache.core.Cache.disk()Disk used for serialization.
method
diskcache.core.Cache.drop_tag_index()Drop tag index on cache database.
method
diskcache.core.Cache.expire(now=None, retry=False)Remove expired items from cache.
method
diskcache.core.Cache.memoize(name=None, typed=False, expire=None, tag=None, ignore=())Memoizing cache decorator.
method
diskcache.core.Cache.set(key, value, expire=None, read=False, tag=None, retry=False)Set `key` and `value` item in cache.
class
diskcache.core.ConstantPretty display of immutable constant.
method
diskcache.core.Disk.hash(key)Compute portable hash for `key`.
method
diskcache.core.Disk.put(key)Convert `key` to fields key and raw for Cache table.
method
diskcache.core.Disk.remove(file_path)Remove a file given by `file_path`.
class
diskcache.core.EmptyDirWarningWarning used by Cache.check for empty directories.
class
diskcache.core.TimeoutDatabase timeout expired.
class
diskcache.core.UnknownFileWarningWarning used by Cache.check for unknown files.
class
diskcache.djangocache.DjangoCacheDjango-compatible disk and file backed cache.
method
diskcache.djangocache.DjangoCache.close(**kwargs)Close the cache connection.
method
diskcache.djangocache.DjangoCache.directory()Cache directory.
method
diskcache.djangocache.DjangoCache.expire()Remove expired items from cache.
class
diskcache.fanout.FanoutCacheCache that shards keys and values.
method
diskcache.fanout.FanoutCache.clear(retry=False)Remove all items from cache.
method
diskcache.fanout.FanoutCache.close()Close database connection.
method
diskcache.fanout.FanoutCache.directory()Cache directory.
method
diskcache.fanout.FanoutCache.drop_tag_index()Drop tag index on cache database.
method
diskcache.fanout.FanoutCache.expire(retry=False)Remove expired items from cache.
class
diskcache.persistent.DequePersistent sequence with double-ended queue semantics.
method
diskcache.persistent.Deque.append(value)Add `value` to back of deque.
method
diskcache.persistent.Deque.appendleft(value)Add `value` to front of deque.
method
diskcache.persistent.Deque.cache()Cache used by deque.
method
diskcache.persistent.Deque.clear()Remove all elements from deque.
method
diskcache.persistent.Deque.maxlen()Max length of the deque.
method
diskcache.persistent.Deque.peek()Peek at value at back of deque.
method
diskcache.persistent.Deque.peekleft()Peek at value at front of deque.
method
diskcache.persistent.Deque.reverse()Reverse deque in place.
method
diskcache.persistent.Deque.rotate(steps=1)Rotate deque right by `steps`.
class
diskcache.persistent.IndexPersistent mutable mapping with insertion order iteration.
method
diskcache.persistent.Index.cache()Cache used by index.
method
diskcache.persistent.Index.clear()Remove all items from index.
method
diskcache.persistent.Index.memoize(name=None, typed=False, ignore=())Memoizing cache decorator.
method
diskcache.persistent.Index.popitem(last=True)Remove and return item pair.
class
diskcache.recipes.AveragerRecipe for calculating a running average.
method
diskcache.recipes.Averager.add(value)Add `value` to average.
class
diskcache.recipes.LockRecipe for cross-process and cross-thread lock.
method
diskcache.recipes.Lock.acquire()Acquire lock using spin-lock algorithm.
method
diskcache.recipes.Lock.locked()Return true if the lock is acquired.
method
diskcache.recipes.Lock.release()Release lock by deleting key.
class
diskcache.recipes.RLockRecipe for cross-process and cross-thread re-entrant lock.
method
diskcache.recipes.RLock.release()Release lock by decrementing count.
About this data
These signatures were extracted from the public source of grantjenks/python-diskcache
using Python's ast module. Argument names, default values,
type annotations and return types are taken verbatim from the code.
Implementation bodies are never stored. See
how it works for details.