Class: Fluent::Plugin::RedisEnrichmentFilter::Cache::NoCache
- Inherits:
-
Object
- Object
- Fluent::Plugin::RedisEnrichmentFilter::Cache::NoCache
- Defined in:
- lib/fluent/plugin/filter_redis_enrichment.rb
Instance Attribute Summary collapse
-
#log ⇒ Object
readonly
Returns the value of attribute log.
Instance Method Summary collapse
- #clean ⇒ Object
- #get(key) ⇒ Object
-
#initialize(redis:, size: nil, ttl: nil, log: nil) ⇒ NoCache
constructor
A new instance of NoCache.
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
#log ⇒ Object (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
#clean ⇒ Object
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 |