Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(13)  |  Call(5)  |  Derive(0)  |  Import(8)
delete data from the cache. 

        def delete(name, namespace=""):
    """ delete data from the cache. """
    try:
        global cache
        del cache[name]
        logging.warn("cache - deleted %s" % name)
        return True
    except KeyError: return False
        


src/j/o/journalr-HEAD/main.py   journalr(Download)
 
		user, entry = db.run_in_transaction(txn, entry_key.parent().parent(), entry_key, new_blob)
		cache.delete([
			cache.C_KEY %user.key(),
			cache.C_KEY %entry.key(),

src/m/e/me2-0.1a1/me2/lib/persist.py   me2(Download)
from me2.utils.locking import lockdec
from datadir import getdatadir
from cache import get, set, delete
 
## simplejson imports
        def sync(self):
            logging.info("persist - syncing %s" % self.fn)
            data = dumps(self.data)
            mc.set(self.fn, data)
            delete(self.fn, self.data)
            logging.debug("persist - transaction returned %s" % key)
            mc.set(self.fn, bla)
            delete(self.fn, self.data)
            cfrom = whichmodule(0)
            if 'me2' in cfrom: 

src/j/s/jsonbot-HEAD/jsb/lib/persist.py   jsonbot(Download)
from jsb.utils.locking import lockdec
from datadir import getdatadir
from cache import get, set, delete
 
## simplejson imports
        def sync(self):
            logging.info("persist - syncing %s" % self.fn)
            data = json.dumps(self.data)
            mc.set(self.fn, data)
            delete(self.fn, self.data)
            logging.debug("persist - transaction returned %s" % key)
            mc.set(fn, bla)
            delete(fn, self.data)
            cfrom = whichmodule(0)
            if 'jsb' in cfrom: 

src/j/s/jsb-1.0/jsb/lib/persist.py   jsb(Download)
    import google.appengine.api.memcache as mc
    from google.appengine.api.datastore_errors import Timeout, TransactionFailedError
    from cache import get, set, delete
    logging.debug("using BigTable based Persist")
 
        if got == False:
            logging.debug("no memcached found - using own cache")
        from cache import get, set, delete
 
    import fcntl

src/f/b/fbfbot-0.2.2/fbf/lib/persist.py   fbfbot(Download)
        got = True
else: logging.debug("no memcached found - using own cache")
from .cache import get, set, delete
 
import fcntl

src/g/g/ggzbot-0.1.3/ggz/lib/persist.py   ggzbot(Download)
        got = True
else: logging.debug("no memcached found - using own cache")
from .cache import get, set, delete
 
import fcntl

src/j/s/jsb3-0.4.1/jsb3/lib/persist.py   jsb3(Download)
        if got == False:
            logging.debug("no memcached found - using own cache")
        from .cache import get, set, delete
 
    import fcntl

src/t/l/tl-0.5/tl/persist.py   tl(Download)
from tl.id import get_pid
from .datadir import getdatadir
from .cache import get, set, delete
 
## simplejson imports