Skip to content
campadrenalin edited this page Sep 14, 2011 · 1 revision

ConcurrenTree.util.storage

Storage

A local storage class that handles document caching. Supports containment testing (key in mystorage), index getting and setting (mystorage[key] = sometree), but not index deletion. Default storage path is "~/.ConcurrenTree/storage/".

Methods:
* __init__() # Initializes cache.
* get(x) # retrieves a document from storage
* set(x) # sets a document in cache
* store(tree) # saves a tree to disk.
* dump() # saves all cached trees and frees the cache as it goes.

Python Library

Clone this wiki locally