Class: Stoplight::DataStore::Redis
- Inherits:
-
Object
- Object
- Stoplight::DataStore::Redis
- Defined in:
- lib/stoplight/data_store.rb
Instance Attribute Summary collapse
-
#redis ⇒ Object
Returns the value of attribute redis.
-
#warn_on_clock_skew ⇒ Object
Returns the value of attribute warn_on_clock_skew.
Instance Method Summary collapse
-
#initialize(redis, warn_on_clock_skew: true) ⇒ Redis
constructor
A new instance of Redis.
Constructor Details
#initialize(redis, warn_on_clock_skew: true) ⇒ Redis
Returns a new instance of Redis.
15 16 17 18 |
# File 'lib/stoplight/data_store.rb', line 15 def initialize(redis, warn_on_clock_skew: true) @warn_on_clock_skew = warn_on_clock_skew @redis = redis end |
Instance Attribute Details
#redis ⇒ Object
Returns the value of attribute redis.
6 7 8 |
# File 'lib/stoplight/data_store.rb', line 6 def redis @redis end |
#warn_on_clock_skew ⇒ Object
Returns the value of attribute warn_on_clock_skew.
10 11 12 |
# File 'lib/stoplight/data_store.rb', line 10 def warn_on_clock_skew @warn_on_clock_skew end |