Class: Fluent::Plugin::RedisEnrichmentFilter::Cache::NoCache

Inherits:
Object
  • Object
show all
Defined in:
lib/fluent/plugin/filter_redis_enrichment.rb

Direct Known Subclasses

FullCache, LazyCache

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(redis:, size: nil, ttl: nil, log: nil) ⇒ NoCache

Returns a new instance of NoCache.



194
195
196
197
198
199
# File 'lib/fluent/plugin/filter_redis_enrichment.rb', line 194

def initialize(redis:, size: nil, ttl: nil, log: nil)
  @redis = redis
  @size = size
  @ttl = ttl
  @log = log
end

Instance Attribute Details

#logObject (readonly)

Returns the value of attribute log.



192
193
194
# File 'lib/fluent/plugin/filter_redis_enrichment.rb', line 192

def log
  @log
end

Instance Method Details

#cleanObject



205
# File 'lib/fluent/plugin/filter_redis_enrichment.rb', line 205

def clean; end

#get(key) ⇒ Object



201
202
203
# File 'lib/fluent/plugin/filter_redis_enrichment.rb', line 201

def get(key)
  @redis.get(key)
end