Class: Ramaze::Cache

Inherits:
Object show all
Defined in:
lib/ramaze/cache.rb,
lib/ramaze/cache/lru.rb,
lib/ramaze/cache/redis.rb,
lib/ramaze/cache/sequel.rb,
lib/ramaze/cache/memcache.rb,
lib/ramaze/cache/localmemcache.rb

Overview

:nodoc:

Defined Under Namespace

Classes: LRU, LocalMemCache, MemCache, Redis, Sequel

Class Method Summary (collapse)

Class Method Details

+ (Object) clear_after_reload

Clears the cache after a file has been reloaded.

Author:

  • Michael Fellinger

Since:

  • 17-07-2009



22
23
24
25
# File 'lib/ramaze/cache.rb', line 22

def self.clear_after_reload
  action.clear if respond_to?(:action)
  action_value.clear if respond_to?(:action_value)
end