示例#1
0
def redis_get(v):
    with RedisCtl(v) as redis_ctl:
        return common_get(redis_ctl[0])
示例#2
0
def memcache_conn_default(v):
    with MemcachedCtl(v) as memcache_ctl:
        return common_get(memcache_ctl)
示例#3
0
def pymemcache_conn_by_hashclient(v):
    with PymemcacheCtl(v) as pymemcache_ctl:
        if pymemcache_ctl[1]:
            return common_get(pymemcache_ctl[1])
        else:
            return "pymemcache-{v} has not attr HashClient".format(v=v)
示例#4
0
def pymemcache_conn_by_client(v):
    with PymemcacheCtl(v) as pymemcache_ctl:
        return common_get(pymemcache_ctl[0])
示例#5
0
def pymemcache_get(v):
    with PymemcacheCtl(v) as pymemcache_ctl:
        return common_get(pymemcache_ctl[0])
示例#6
0
def bmemcached_conn_default(v):
    with BmemcachedCtl(v) as bmemcached_ctl:
        return common_get(bmemcached_ctl)