| Home | Trees | Indices | Help |
|---|
|
|
object --+
|
LocalCache
LocalCache middleware
Caches results of queries in memory returning the previous result of repeated queries until the entry expires. Entries are cached based on the query used.
Config options:
Importing this module adds the fresh query option to Relation. This allows the developer to easily force a query to be fresh:
# This query will always fetch fresh data
Person.where({ 'name': 'bob' }).fresh()
| Instance Methods | |||
|
|||
|
|||
|
Inherited from |
|||
| Class Variables | |
cache_store = CacheStore(300)
|
|
| Properties | |
|
Inherited from |
| Method Details |
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
|
| Home | Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0.1 on Thu Jun 30 17:41:50 2011 | http://epydoc.sourceforge.net |