Module: MockRedis::MemoryMethod
- Included in:
- Database
- Defined in:
- lib/mock_redis/memory_method.rb
Instance Method Summary collapse
Instance Method Details
#memory(usage, key = nil, *_options) ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/mock_redis/memory_method.rb', line 3 def memory(usage, key = nil, *) raise ArgumentError, "unhandled command `memory #{usage}`" if usage != 'usage' return nil unless @data.key?(key) 160 end |