(doc, cache_expire=COUCH_CACHE_TIMEOUT)
Cache an already opened doc instance
Cache an already opened doc instance
Cache an already opened doc instance
def do_cache_doc(doc, cache_expire=COUCH_CACHE_TIMEOUT):
    """Cache an already opened doc instance"""
    if CACHE_DOCS:
        rcache().set(key_doc_id(doc['_id']), simplejson.dumps(doc), timeout=cache_expire)
def do_cache_doc ( doc , cache_expire = COUCH_CACHE_TIMEOUT ) : if CACHE_DOCS : rcache ( ) . set ( key_doc_id ( doc [ '_id' ] ) , simplejson . dumps ( doc ) , timeout = cache_expire )