Module: AnyCache::Dumper::InterfaceAccessMixin Private

Included in:
Adapters::Basic
Defined in:
lib/any_cache/dumper/interface_access_mixin.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.4.0

Instance Method Summary collapse

Instance Method Details

#detransform_pairset(pairset) ⇒ Hash

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.

Parameters:

  • pairset (Hash)

Returns:

  • (Hash)

Since:

  • 0.4.0



38
39
40
# File 'lib/any_cache/dumper/interface_access_mixin.rb', line 38

def detransform_pairset(pairset)
  AnyCache::Dumper.detransform_hash(pairset)
end

#detransform_value(value) ⇒ Object

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.

Parameters:

  • value (Object)

Returns:

  • (Object)

Since:

  • 0.4.0



20
21
22
# File 'lib/any_cache/dumper/interface_access_mixin.rb', line 20

def detransform_value(value)
  AnyCache::Dumper.load(value)
end

#transform_pairset(pairset) ⇒ Hash

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.

Parameters:

  • pairset (Hash)

Returns:

  • (Hash)

Since:

  • 0.4.0



29
30
31
# File 'lib/any_cache/dumper/interface_access_mixin.rb', line 29

def transform_pairset(pairset)
  AnyCache::Dumper.transform_hash(pairset)
end

#transform_value(value) ⇒ Object

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.

Parameters:

  • value (Object)

Returns:

  • (Object)

Since:

  • 0.4.0



11
12
13
# File 'lib/any_cache/dumper/interface_access_mixin.rb', line 11

def transform_value(value)
  AnyCache::Dumper.dump(value)
end