Class: RubyFFDB::CacheProvider

Inherits:
Object
  • Object
show all
Defined in:
lib/rffdb/cache_provider.rb

Overview

Generic Cache Provider definition. Any subclass must implement or inherit the methods defined here (if any).

Direct Known Subclasses

RubyFFDB::CacheProviders::LRUCache

Instance Method Summary collapse

Instance Method Details

#[](_key) ⇒ Object

Used for pulling data from the cache



6
7
8
# File 'lib/rffdb/cache_provider.rb', line 6

def [](_key)
  nil
end

#[]=(_key, _value) ⇒ Object

Used for storing data in the cache



11
12
13
# File 'lib/rffdb/cache_provider.rb', line 11

def []=(_key, _value)
  false
end