Class: FancyCount::RedisAdapter
- Defined in:
- lib/fancy_count/redis_adapter.rb
Instance Method Summary collapse
Methods inherited from Adapter
#change, #decrement, #delete, #increment, #initialize, #reset, #value
Constructor Details
This class inherits a constructor from FancyCount::Adapter
Instance Method Details
#counter ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/fancy_count/redis_adapter.rb', line 5 def counter = {} if @config.expireat [:expireat] = @config.expireat end @counter ||= Redis::Counter.new(@name, ) end |