Docs for cache.disk
Description
<class 'gluon.cache.CacheOnDisk'>
|
Attributes
cache.disk.PersistentStorage |
<type 'type'> extends (<type 'object'>,)
belongs to class <type 'type'>
Implements a key based thread/process-safe safe storage in disk. |
cache.disk.__call__ |
<type 'instancemethod'>
belongs to class <type 'instancemethod'>
|
cache.disk.__class__ |
<type 'type'> extends (<class 'gluon.cache.CacheAbstract'>,)
belongs to class <type 'type'>
Disk based cache This is implemented as a key value store where each key corresponds to a single file in disk which is replaced when the value changes. Disk cache provides persistance when web2py is started/stopped but it is slower than `CacheInRam` Values stored in disk cache must be pickable. |
cache.disk.__delattr__ |
<type 'method-wrapper'>
belongs to class <type 'method-wrapper'>
x.__delattr__('name') <==> del x.name |
cache.disk.__dict__ |
<type 'dict'>
belongs to class <type 'dict'>
dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object's (key, value) pairs dict(iterable) -> new dictionary initialized as if via: d = {} for k, v in iterable: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list. For example: dict(one=1, two=2) |
cache.disk.__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.__format__ |
<type 'builtin_function_or_method'>
belongs to class <type 'builtin_function_or_method'>
default object formatter |
cache.disk.__getattribute__ |
<type 'method-wrapper'>
belongs to class <type 'method-wrapper'>
x.__getattribute__('name') <==> x.name |
cache.disk.__hash__ |
<type 'method-wrapper'>
belongs to class <type 'method-wrapper'>
x.__hash__() <==> hash(x) |
cache.disk.__init__ |
<type 'instancemethod'>
belongs to class <type 'instancemethod'>
|
cache.disk.__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.__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.__reduce__ |
<type 'builtin_function_or_method'>
belongs to class <type 'builtin_function_or_method'>
helper for pickle |
cache.disk.__reduce_ex__ |
<type 'builtin_function_or_method'>
belongs to class <type 'builtin_function_or_method'>
helper for pickle |
cache.disk.__repr__ |
<type 'method-wrapper'>
belongs to class <type 'method-wrapper'>
x.__repr__() <==> repr(x) |
cache.disk.__setattr__ |
<type 'method-wrapper'>
belongs to class <type 'method-wrapper'>
x.__setattr__('name', value) <==> x.name = value |
cache.disk.__sizeof__ |
<type 'builtin_function_or_method'>
belongs to class <type 'builtin_function_or_method'>
__sizeof__() -> int size of object in memory, in bytes |
cache.disk.__str__ |
<type 'method-wrapper'>
belongs to class <type 'method-wrapper'>
x.__str__() <==> str(x) |
cache.disk.__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.__weakref__ |
<type 'NoneType'>
belongs to class <type 'NoneType'>
|
cache.disk._clear |
<type 'instancemethod'>
belongs to class <type 'instancemethod'>
Auxiliary function called by `clear` to search and clear cache entries |
cache.disk.cache_stats_name |
<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.clear |
<type 'instancemethod'>
belongs to class <type 'instancemethod'>
|
cache.disk.folder |
<type 'NoneType'>
belongs to class <type 'NoneType'>
|
cache.disk.increment |
<type 'instancemethod'>
belongs to class <type 'instancemethod'>
|
cache.disk.initialize |
<type 'instancemethod'>
belongs to class <type 'instancemethod'>
|
cache.disk.initialized |
<type 'bool'>
belongs to class <type 'bool'>
bool(x) -> bool Returns True when the argument x is true, False otherwise. The builtins True and False are the only two instances of the class bool. The class bool is a subclass of the class int, and cannot be subclassed. |
cache.disk.max_ram_utilization |
<type 'NoneType'>
belongs to class <type 'NoneType'>
|
cache.disk.request |
<class 'gluon.globals.Request'>
belongs to class <class 'gluon.globals.Request'>
Defines the request object and the default values of its members - env: environment variables, by gluon.main.wsgibase() - cookies - get_vars - post_vars - vars - folder - application - function - args - extension - now: datetime.datetime.now() - utcnow : datetime.datetime.utcnow() - is_local - is_https - restful() |
cache.disk.storage |
<type 'NoneType'>
belongs to class <type 'NoneType'>
|