Class: Innate::Cache::Memory

Inherits:
Hash
  • Object
show all
Includes:
API
Defined in:
/home/manveru/github/ramaze/ramaze.net/tmp/git/innate/lib/innate/cache/memory.rb

Overview

Memory cache is simply a Hash with the Cache::API, it's the reference implementation for every other cache and the default cache.

Instance Method Summary (collapse)

Methods included from API

#cache_clear, #cache_setup

Instance Method Details

- (Object) cache_delete(*args)



16
17
18
# File '/home/manveru/github/ramaze/ramaze.net/tmp/git/innate/lib/innate/cache/memory.rb', line 16

def cache_delete(*args)
  super{|key| delete(key) }
end

- (Object) cache_fetch(*args)



12
13
14
# File '/home/manveru/github/ramaze/ramaze.net/tmp/git/innate/lib/innate/cache/memory.rb', line 12

def cache_fetch(*args)
  super{|key| self[key] }
end

- (Object) cache_store(*args)



8
9
10
# File '/home/manveru/github/ramaze/ramaze.net/tmp/git/innate/lib/innate/cache/memory.rb', line 8

def cache_store(*args)
  super{|key, value| self[key] = value }
end