You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.