Example #1
0
 def topic(self):
     config = Config(REDIS_STORAGE_SERVER_PORT=6668,
                     REDIS_STORAGE_SERVER_PASSWORD='******')
     storage = RedisStorage(
         Context(config=config, server=get_server('ACME-SEC')))
     storage.put(IMAGE_URL % 9999, IMAGE_BYTES)
     return storage.exists(IMAGE_URL % 9999)
Example #2
0
            def topic(self):
                config = Config(REDIS_STORAGE_SERVER_PORT=300,
                                REDIS_STORAGE_SERVER_PASSWORD='******',
                                REDIS_STORAGE_IGNORE_ERRORS=False)
                storage = RedisStorage(context=Context(
                    config=config, server=get_server('ACME-SEC')),
                                       shared_client=False)

                return storage.exists(IMAGE_URL % 2)
Example #3
0
            def topic(self):
                config = Config(
                    REDIS_STORAGE_SERVER_PORT=300,
                    REDIS_STORAGE_SERVER_PASSWORD='******',
                    REDIS_STORAGE_IGNORE_ERRORS=False
                )
                storage = RedisStorage(
                    context=Context(
                        config=config,
                        server=get_server('ACME-SEC')
                    ),
                    shared_client=False
                )

                return storage.exists(IMAGE_URL % 2)
Example #4
0
 def topic(self):
     config = Config(REDIS_STORAGE_SERVER_PORT=6668, REDIS_STORAGE_SERVER_PASSWORD='******')
     storage = RedisStorage(Context(config=config, server=get_server('ACME-SEC')))
     return storage.exists(IMAGE_URL % 10000)