标签:代码 web ret sof core turn soft def imp
import redis
from lib.core.config import ConfigType,Config
class MyRedis(object):
def __init__(self):
self.config = Config()
self.data = self.config.read(ConfigType.REDIS)
self.r = redis.Redis(**self.data)
def get(self,k):
return self.r.get(k)
def set(self,k,v):
self.r.set(k,v)
标签:代码 web ret sof core turn soft def imp
原文地址:https://www.cnblogs.com/laosun0204/p/9268011.html