Class: Kameleoon::Storage::Cache

Inherits:
Object
  • Object
show all
Defined in:
lib/kameleoon/storage/cache.rb

Overview

Will be useful for Ruby 3.0 Abstract Cache class (interface)

Direct Known Subclasses

CacheImpl

Instance Method Summary collapse

Instance Method Details

#active_itemsObject



18
19
20
# File 'lib/kameleoon/storage/cache.rb', line 18

def active_items
  raise 'Abstract method `active_items` called'
end

#get(_key) ⇒ Object



10
11
12
# File 'lib/kameleoon/storage/cache.rb', line 10

def get(_key)
  raise 'Abstract method `read` called'
end

#set(_key, _value) ⇒ Object



14
15
16
# File 'lib/kameleoon/storage/cache.rb', line 14

def set(_key, _value)
  raise 'Abstract method `write` called'
end