Ejemplo n.º 1
0
 def topic(self):
     config = Config(REDIS_STORAGE_SERVER_PORT=6379, )
     storage = RedisStorage(
         Context(config=config, server=get_server('ACME-SEC')))
     storage.put(IMAGE_URL % 10001, IMAGE_BYTES)
     storage.remove(IMAGE_URL % 10001)
     return self.parent.connection.get(IMAGE_URL % 10001)
Ejemplo n.º 2
0
 def topic(self):
     config = Config(
         REDIS_STORAGE_SERVER_PORT=6379,
     )
     storage = RedisStorage(Context(
         config=config, server=get_server('ACME-SEC')
     ))
     storage.put(IMAGE_URL % 10001, IMAGE_BYTES)
     storage.remove(IMAGE_URL % 10001)
     return self.parent.connection.get(IMAGE_URL % 10001)
Ejemplo n.º 3
0
 def topic(self):
     config = Config(
         REDIS_STORAGE_SERVER_PORT=6379,
     )
     storage = RedisStorage(Context(
         config=config, server=get_server('ACME-SEC')
     ))
     return storage.remove(IMAGE_URL % 10001)
Ejemplo n.º 4
0
 def topic(self):
     config = Config(REDIS_STORAGE_SERVER_PORT=6379, )
     storage = RedisStorage(
         Context(config=config, server=get_server('ACME-SEC')))
     return storage.remove(IMAGE_URL % 10001)
 def topic(self):
     config = Config()
     storage = RedisStorage(
         Context(config=config, server=get_server('ACME-SEC')))
     return storage.remove(IMAGE_URL % 10001)