Class: Travis::Lock::Redis
- Inherits:
-
Object
- Object
- Travis::Lock::Redis
- Extended by:
- MonitorMixin
- Defined in:
- lib/travis/lock/redis.rb
Defined Under Namespace
Classes: LockError
Constant Summary collapse
- DEFAULTS =
{ ttl: 5 * 60, retries: 5, interval: 0.1 }
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#retried ⇒ Object
readonly
Returns the value of attribute retried.
Instance Method Summary collapse
- #exclusive ⇒ Object
-
#initialize(name, config) ⇒ Redis
constructor
A new instance of Redis.
Constructor Details
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
24 25 26 |
# File 'lib/travis/lock/redis.rb', line 24 def config @config end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
24 25 26 |
# File 'lib/travis/lock/redis.rb', line 24 def name @name end |
#retried ⇒ Object (readonly)
Returns the value of attribute retried.
24 25 26 |
# File 'lib/travis/lock/redis.rb', line 24 def retried @retried end |