コード例 #1
0
ファイル: db_redis.py プロジェクト: xuning992/tfty
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)