import redis
host = "127.0.0.1"
port = 6379
password = ""
db = 15
class CrazyRedis(object):
def __init__(self):
self.__client__ = redis.Redis(
host=host,
port = port,
password=password,
)
print ("init")
def lpush(self,key,value):
return self.__client__.lpush(key,value)
if __name__=="__main__":
print ("yes")
c = CrazyRedis()
c.lpush("b","v")
print ("yes")