Skip to main content

a dictionary-like, file-based cache module for Python

Project description

https://badge.fury.io/py/fcache.png https://travis-ci.org/tsroten/fcache.png?branch=develop

fcache is a dictionary-like, file-based cache module for Python. It’s simple to use, has an optional write buffer, and is Shelf-compatible.

>>> from fcache.cache import FileCache
>>> mycache = FileCache('myapp')
>>> mycache['foo'] = [1, 2, 3, 4, 5]
>>> mycache['foo']
[1, 2, 3, 4, 5]
>>> mycache['bar'] = 'value'
>>> list(mycache)
['foo', 'bar']
>>> del mycache['foo']
>>> mycache['foo']
    ...
    KeyError: 'foo'

Install

fcache supports Python 2.6, 2.7, and 3. To install fcache, use pip:

$ pip install fcache

fcache also requires the appdirs package.

Documentation

fcache’s documentation contains an introduction along with an API overview. For more information on how to get started with fcache, be sure to read the documentation.

Bug/Issues Tracker

fcache uses its GitHub Issues page to track bugs, feature requests, and support questions.

License

fcache is released under the OSI-approved MIT License. See the file LICENSE.txt for more information.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fcache-0.4.5.tar.gz (15.0 kB view details)

Uploaded Source

File details

Details for the file fcache-0.4.5.tar.gz.

File metadata

  • Download URL: fcache-0.4.5.tar.gz
  • Upload date:
  • Size: 15.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for fcache-0.4.5.tar.gz
Algorithm Hash digest
SHA256 dcc466ce38cc41f1132a3c1e30483c1776ed83d7a4027a19abc755d215f63d63
MD5 d6774f37f910ec31f56491ae4423bc97
BLAKE2b-256 6b6154f85bfd70f67b70884cea9611ae1ab741fec9c91188e6f7bdef13e28775

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page