Class: AwsDevUtils::CacheWrapper

Inherits:
Object
  • Object
show all
Includes:
Utils
Defined in:
lib/aws-dev-utils/cache_wrapper.rb

Instance Method Summary collapse

Methods included from Utils

nested_hash, nested_struct

Constructor Details

#initialize(client, exp = 60) ⇒ CacheWrapper

Initialize a new CacheWrapper, internal use only.

Parameters:

  • (defaults to: 60)
    • the key-value timeout



10
11
12
13
# File 'lib/aws-dev-utils/cache_wrapper.rb', line 10

def initialize client, exp=60
  @client = client
  @exp = exp
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(m, *args, &block) ⇒ Object



15
16
17
# File 'lib/aws-dev-utils/cache_wrapper.rb', line 15

def method_missing m, *args, &block
  do_call(m, args.first || {})
end