RedisClusterCache

class RedisClusterCache[F[_], V](val jedisCluster: JedisCluster)(implicit evidence$1: Sync[F], val config: CacheConfig, val codec: Codec[V]) extends AbstractCache[F, V]
trait AbstractCache[F, V]
trait LoggingSupport[F]
trait Cache[F, V]
trait CacheAlg[F, V]
class Object
trait Matchable
class Any

Value members

Concrete methods

protected def F: Sync[F]
override protected def doGet(key: String): F[Option[V]]
Definition Classes
AbstractCache
override protected def doPut(key: String, value: V, ttl: Option[Duration]): F[Unit]
Definition Classes
AbstractCache
override protected def doRemove(key: String): F[Unit]
Definition Classes
AbstractCache

Deprecated methods

@deprecated("JedisCluster doesn\'t support this operation, scheduled to be removed with the next jedis major release", "0.28.0")
override protected def doRemoveAll: F[Unit]
Deprecated
Definition Classes
AbstractCache

Inherited methods

final override def caching(keyParts: Any*)(ttl: Option[Duration])(f: => V)(implicit flags: Flags): F[V]
Definition Classes
AbstractCache -> CacheAlg
Inherited from
AbstractCache
override def cachingF(keyParts: Any*)(ttl: Option[Duration])(f: F[V])(implicit flags: Flags): F[V]
Definition Classes
AbstractCache -> CacheAlg
Inherited from
AbstractCache
override def cachingForMemoize(baseKey: String)(ttl: Option[Duration])(f: => V)(implicit flags: Flags): F[V]
Definition Classes
AbstractCache -> Cache
Inherited from
AbstractCache
override def cachingForMemoizeF(baseKey: String)(ttl: Option[Duration])(f: F[V])(implicit flags: Flags): F[V]
Definition Classes
AbstractCache -> Cache
Inherited from
AbstractCache
final override def get(keyParts: Any*)(implicit flags: Flags): F[Option[V]]
Definition Classes
AbstractCache -> CacheAlg
Inherited from
AbstractCache
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

Inherited from
LoggingSupport
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

Inherited from
LoggingSupport
final override def put(keyParts: Any*)(value: V, ttl: Option[Duration])(implicit flags: Flags): F[Unit]
Definition Classes
AbstractCache -> CacheAlg
Inherited from
AbstractCache
final override def remove(keyParts: Any*): F[Unit]
Definition Classes
AbstractCache -> CacheAlg
Inherited from
AbstractCache
final override def removeAll: F[Unit]
Definition Classes
AbstractCache -> CacheAlg
Inherited from
AbstractCache

Concrete fields

override val close: F[Unit]
val jedisCluster: JedisCluster
final override protected val logger: Logger[F]

Implicits

Implicits

implicit val codec: Codec[V]
implicit val config: CacheConfig