Module: Mayak::Cache

Extended by:
T::Generic, T::Helpers, T::Sig
Included in:
Mayak::Caching::LRUCache, Mayak::Caching::UnboundedCache
Defined in:
lib/mayak/cache.rb

Constant Summary collapse

Key =
type_member
Value =
type_member

Instance Method Summary collapse

Instance Method Details

#clearObject



28
29
# File 'lib/mayak/cache.rb', line 28

def clear
end

#delete(key) ⇒ Object



32
33
# File 'lib/mayak/cache.rb', line 32

def delete(key)
end

#fetch(key, &blk) ⇒ Object



24
25
# File 'lib/mayak/cache.rb', line 24

def fetch(key, &blk)
end

#read(key) ⇒ Object



16
17
# File 'lib/mayak/cache.rb', line 16

def read(key)
end

#write(key, value) ⇒ Object



20
21
# File 'lib/mayak/cache.rb', line 20

def write(key, value)
end