Class: RedisHA::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/redis_ha/crdt/base.rb

Direct Known Subclasses

Counter, HashMap, Set

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(pool, key) ⇒ Base

Returns a new instance of Base.



5
6
7
8
# File 'lib/redis_ha/crdt/base.rb', line 5

def initialize(pool, key)
  @pool = pool
  @key = key
end

Instance Attribute Details

#keyObject

Returns the value of attribute key.



3
4
5
# File 'lib/redis_ha/crdt/base.rb', line 3

def key
  @key
end

#merge_strategyObject

Returns the value of attribute merge_strategy.



3
4
5
# File 'lib/redis_ha/crdt/base.rb', line 3

def merge_strategy
  @merge_strategy
end

#poolObject

Returns the value of attribute pool.



3
4
5
# File 'lib/redis_ha/crdt/base.rb', line 3

def pool
  @pool
end