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

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)
function to check for a memcached entity, currently supports Google App Engine memcache,
will add generic app client client

        def cacheGet(key):
    """
    function to check for a memcached entity, currently supports Google App Engine memcache,
    will add generic app client client
    """
    if memcached:
        if memcached_service == 'google':
            return memcache.get(key)
    return
        


src/a/v/avalon-HEAD/cloudtext.py   avalon(Download)
from settings import Settings
 
from cache import cacheGet          # import wrapper function to read from memcached
from cache import cacheRunning      # checks if cache service is active
from cache import cacheSet          # import wrapper function to write to memcached
        return text
 
    tt = cacheGet('/' + tm + '/' + sl + '/' + tl + '/' + text)
 
    if tt is None:

src/a/v/avalon-HEAD/gengo_tm.py   avalon(Download)
from utf8 import utf8
from cache import cacheGet
from cache import cacheSet
 
"""
def gengo_tm(text, sl, tl, tier='standard', auto_approve=True, public_key='', private_key='', sandbox = False, comment='', machine=True, ttl=300, callback_url=''):
    tt = cacheGet('/gengo/' + sl + '/' + tl + '/' + text)
    if tt is not None:
        return tt
    #