Esempio 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 % 7, IMAGE_BYTES)
     storage.put_detector_data(IMAGE_URL % 7, 'some-data')
     return storage.get_detector_data(IMAGE_URL % 7)
Esempio n. 2
0
 def topic(self):
     config = Config(
         REDIS_STORAGE_SERVER_PORT=6379,
     )
     storage = RedisStorage(Context(
         config=config, server=get_server('ACME-SEC')
     ))
     return storage.get_detector_data(IMAGE_URL % 10000)
Esempio n. 3
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 % 7, IMAGE_BYTES)
     storage.put_detector_data(IMAGE_URL % 7, 'some-data')
     return storage.get_detector_data(IMAGE_URL % 7)
Esempio 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.get_detector_data(IMAGE_URL % 10000)
 def topic(self):
     config = Config()
     storage = RedisStorage(
         Context(config=config, server=get_server('ACME-SEC')))
     return storage.get_detector_data(IMAGE_URL % 10000)