Docs for cache.disk.PersistentStorage

[ Python Tutorial ] [ Python Libraries ] [ web2py epydoc ]

Description


<type 'type'> extends (<type 'object'>,)





Implements a key based thread/process-safe safe storage in disk.


Attributes


cache.disk.PersistentStorage.__class__ <type 'type'> extends (<type 'object'>,) belongs to class <type 'type'>
type(object) -> the object's type type(name, bases, dict) -> a new type

cache.disk.PersistentStorage.__contains__ <type 'instancemethod'> belongs to class <type 'instancemethod'>

cache.disk.PersistentStorage.__delattr__ <type 'wrapper_descriptor'> belongs to class <type 'wrapper_descriptor'>
x.__delattr__('name') <==> del x.name

cache.disk.PersistentStorage.__delitem__ <type 'instancemethod'> belongs to class <type 'instancemethod'>

cache.disk.PersistentStorage.__dict__ <type 'dictproxy'> belongs to class <type 'dictproxy'>

cache.disk.PersistentStorage.__doc__ <type 'str'> belongs to class <type 'str'>
str(object='') -> string Return a nice string representation of the object. If the argument is a string, the return value is the same object.

cache.disk.PersistentStorage.__format__ <type 'method_descriptor'> belongs to class <type 'method_descriptor'>
default object formatter

cache.disk.PersistentStorage.__getattribute__ <type 'wrapper_descriptor'> belongs to class <type 'wrapper_descriptor'>
x.__getattribute__('name') <==> x.name

cache.disk.PersistentStorage.__getitem__ <type 'instancemethod'> belongs to class <type 'instancemethod'>

cache.disk.PersistentStorage.__hash__ <type 'wrapper_descriptor'> belongs to class <type 'wrapper_descriptor'>
x.__hash__() <==> hash(x)

cache.disk.PersistentStorage.__init__ <type 'instancemethod'> belongs to class <type 'instancemethod'>

cache.disk.PersistentStorage.__iter__ <type 'instancemethod'> belongs to class <type 'instancemethod'>

cache.disk.PersistentStorage.__module__ <type 'str'> belongs to class <type 'str'>
str(object='') -> string Return a nice string representation of the object. If the argument is a string, the return value is the same object.

cache.disk.PersistentStorage.__new__ <type 'builtin_function_or_method'> belongs to class <type 'builtin_function_or_method'>
T.__new__(S, ...) -> a new object with type S, a subtype of T

cache.disk.PersistentStorage.__reduce__ <type 'method_descriptor'> belongs to class <type 'method_descriptor'>
helper for pickle

cache.disk.PersistentStorage.__reduce_ex__ <type 'method_descriptor'> belongs to class <type 'method_descriptor'>
helper for pickle

cache.disk.PersistentStorage.__repr__ <type 'wrapper_descriptor'> belongs to class <type 'wrapper_descriptor'>
x.__repr__() <==> repr(x)

cache.disk.PersistentStorage.__setattr__ <type 'wrapper_descriptor'> belongs to class <type 'wrapper_descriptor'>
x.__setattr__('name', value) <==> x.name = value

cache.disk.PersistentStorage.__setitem__ <type 'instancemethod'> belongs to class <type 'instancemethod'>

cache.disk.PersistentStorage.__sizeof__ <type 'method_descriptor'> belongs to class <type 'method_descriptor'>
__sizeof__() -> int size of object in memory, in bytes

cache.disk.PersistentStorage.__str__ <type 'wrapper_descriptor'> belongs to class <type 'wrapper_descriptor'>
x.__str__() <==> str(x)

cache.disk.PersistentStorage.__subclasshook__ <type 'builtin_function_or_method'> belongs to class <type 'builtin_function_or_method'>
Abstract classes can override this to customize issubclass(). This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).

cache.disk.PersistentStorage.__weakref__ <type 'getset_descriptor'> belongs to class <type 'getset_descriptor'>
list of weak references to the object (if defined)

cache.disk.PersistentStorage.acquire <type 'instancemethod'> belongs to class <type 'instancemethod'>

cache.disk.PersistentStorage.get <type 'instancemethod'> belongs to class <type 'instancemethod'>

cache.disk.PersistentStorage.keys <type 'instancemethod'> belongs to class <type 'instancemethod'>

cache.disk.PersistentStorage.release <type 'instancemethod'> belongs to class <type 'instancemethod'>

cache.disk.PersistentStorage.safe_apply <type 'instancemethod'> belongs to class <type 'instancemethod'>
Safely apply a function to the value of a key in storage and set the return value of the function to it. Return the result of applying the function.

cache.disk.PersistentStorage.wait_portalock <type 'instancemethod'> belongs to class <type 'instancemethod'>
Wait for the process file lock.