• This software is owned by The university of California, Irvine, and is not distributed under any version of the GPL. GPL is a fine series of licenses, but the owners of the software need it to be distributed under these terms.
    cachedb is a dictionary-like database wrapper that can greatly improve the performance of some kinds of database operation. Beyond allowing write-through and write-back element caching, the module also allows you to specific disk-to-core (from_string) and core-to-disk (to_string) transparent conversion functions that will only be used as little as possible.

    IOW, if you read an item off of disk, it will transparently be converted to an in-core representation. If you change it, and the cache isn't overflowing, the new version won't be re-converted back to the disk format or written to disk until later.

    The initialization method looks like:

    ...and the rest is just like using a dictionary - with the exception that if you use a write-back cache, you'll need to use the dict.close() method to flush the dirty buffers.

    Download it here

    Related modules:

  • ChangeLog:


    Hits: 4144
    Timestamp: 2024-12-27 08:51:40 PST

    Back to Dan's tech tidbits

    You can e-mail the author with questions or comments: