LoggingSupport

trait LoggingSupport[F[_]]

Helper methods for logging

class Object
trait Matchable
class Any
trait AbstractCache[F, V]

Value members

Abstract methods

protected def logger: Logger[F]

Concrete methods

protected def logCacheHitOrMiss[A](key: String, result: Option[A]): F[Unit]

Output a debug log to record the result of a cache lookup

Output a debug log to record the result of a cache lookup

Type Params
A

the type of the cache value

Value Params
key

the key that was looked up

result

the result of the cache lookup

protected def logCachePut(key: String, ttl: Option[Duration]): F[Unit]

Output a debug log to record a cache insertion/update

Output a debug log to record a cache insertion/update

Value Params
key

the key that was inserted/updated

ttl

the TTL of the inserted entry

Implicits

Implicits

implicit protected def F: Monad[F]