lib/pseudocephalopod/memory_cache.rb in pseudocephalopod-0.2.5 vs lib/pseudocephalopod/memory_cache.rb in pseudocephalopod-0.3.0
- old
+ new
@@ -1,5 +1,9 @@
module Pseudocephalopod
+ # Implements a simple cache store that uses the
+ # current processes memory. This makes is primarily
+ # used for testing purposes in the situations where
+ # caching is used.
class MemoryCache
def self.write(key, value, options = {})
cache[key.to_s] = value
end
\ No newline at end of file