class AWS::Flow::S3DataConverter::S3Cache

S3Cache is a wrapper around the LruRedux cache.

Constants

MAX_SIZE

Attributes

cache[R]

Public Class Methods

new() click to toggle source
# File lib/aws/decider/data_converter.rb, line 75
def initialize
  @cache = LruRedux::ThreadSafeCache.new(MAX_SIZE)
end

Public Instance Methods

[](key) click to toggle source

Cache lookup

# File lib/aws/decider/data_converter.rb, line 80
def [](key)
  @cache[key]
end
[]=(key, value) click to toggle source

Cache entry

# File lib/aws/decider/data_converter.rb, line 85
def []=(key, value)
  @cache[key] = value
end