Skip to content
/ fcache Public

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

License

Notifications You must be signed in to change notification settings

tsroten/fcache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

2972445 · Nov 19, 2024
Nov 19, 2024
Nov 19, 2024
Nov 19, 2024
Mar 19, 2023
Mar 19, 2023
Jan 31, 2017
Jun 28, 2023
Nov 19, 2024
Jun 28, 2023
Mar 12, 2017
Feb 1, 2024
Nov 19, 2024

Repository files navigation

fcache

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'
with FileCache('myapp') as mycache:
    mycache['foo'] = [1, 2, 3, 4, 5]

Install

To install fcache, use pip:

$ pip install fcache

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.

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages