robottelo.decorators.func_shared.redis_storage
¶
Module Contents¶
Classes¶
Redis Key value storage handler |
Attributes¶
- robottelo.decorators.func_shared.redis_storage.redis¶
- robottelo.decorators.func_shared.redis_storage.REDIS_HOST = localhost¶
- robottelo.decorators.func_shared.redis_storage.REDIS_PORT = 6379¶
- robottelo.decorators.func_shared.redis_storage.REDIS_DB = 0¶
- robottelo.decorators.func_shared.redis_storage.REDIS_PASSWORD¶
- robottelo.decorators.func_shared.redis_storage.LOCK_TIMEOUT = 7200¶
- class robottelo.decorators.func_shared.redis_storage.RedisStorageHandler(host=REDIS_HOST, port=REDIS_PORT, db=REDIS_DB, password=REDIS_PASSWORD, lock_timeout=LOCK_TIMEOUT)¶
Bases:
robottelo.decorators.func_shared.base.BaseStorageHandler
Redis Key value storage handler
- property client(self)¶
- lock(self, key, timeout=None)¶
Return the storage locker context manager
- when_lock_acquired(self, lock_object)¶
called when the lock is acquired to do some added action
- get(self, key)¶
Return the key value
- set(self, key, value)¶
Write the value of key