Class: Startback::Caching::Logger
Instance Method Summary
collapse
-
#cache_fail(entity_cache, context, pkey, ex) ⇒ Object
-
#cache_hit(entity_cache, context, pkey, cached) ⇒ Object
-
#cache_miss(entity_cache, context, pkey) ⇒ Object
-
#cache_outdated(entity_cache, context, pkey, cached) ⇒ Object
#log, #monitor, #stop_errors, #try_max_times
Instance Method Details
#cache_fail(entity_cache, context, pkey, ex) ⇒ Object
18
19
20
|
# File 'lib/startback/caching/logger.rb', line 18
def cache_fail(entity_cache, context, pkey, ex)
log(:error, entity_cache, "cache_fail", context, op_data: pkey, error: ex)
end
|
#cache_hit(entity_cache, context, pkey, cached) ⇒ Object
6
7
8
|
# File 'lib/startback/caching/logger.rb', line 6
def cache_hit(entity_cache, context, pkey, cached)
log(:debug, entity_cache, "cache_hit", context, op_data: pkey)
end
|
#cache_miss(entity_cache, context, pkey) ⇒ Object
14
15
16
|
# File 'lib/startback/caching/logger.rb', line 14
def cache_miss(entity_cache, context, pkey)
log(:info, entity_cache, "cache_miss", context, op_data: pkey)
end
|
#cache_outdated(entity_cache, context, pkey, cached) ⇒ Object
10
11
12
|
# File 'lib/startback/caching/logger.rb', line 10
def cache_outdated(entity_cache, context, pkey, cached)
log(:info, entity_cache, "cache_outdated", context, op_data: pkey)
end
|