Module: AnyCache::Patches Private

Defined in:
lib/any_cache/patches.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Since:

  • 0.3.1

Defined Under Namespace

Modules: DalliStore, InterfaceAccessMixin

Class Method Summary collapse

Class Method Details

.enable!(patch_series) ⇒ void

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

This method returns an undefined value.

Parameters:

  • patch_series (Symbol, String)

Raises:

Since:

  • 0.3.1



17
18
19
20
21
22
23
24
# File 'lib/any_cache/patches.rb', line 17

def enable!(patch_series)
  case patch_series
  when :dalli_store, 'dalli_store'
    AnyCache::Patches::DalliStore.enable!
  else
    raise AnyCache::NonexistentPatchError, "Can't enable nonexistnet patch! (#{patch_series})"
  end
end