module Eve

Constants

VERSION

Public Class Methods

cache() click to toggle source
# File lib/eve.rb, line 17
def cache
  return @cache if @cache
  @cache = begin
    Rails.cache
  rescue NameError
    ActiveSupport::Cache.lookup_store(*cache_store)
  end
end
cache_store() click to toggle source
# File lib/eve.rb, line 8
def cache_store
  @cache_store ||= [:file_store, "tmp/eve.cache"]
end
cache_store=(a) click to toggle source
# File lib/eve.rb, line 12
def cache_store=(a)
  @cache_store = [a].flatten
  @cache = ActiveSupport::Cache.lookup_store(a) if @cache
end