t

scalacache.redis

RedisCacheBase

trait RedisCacheBase[F[_], V] extends AbstractCache[F, V]

Contains implementations of all methods that can be implemented independent of the type of Redis client. This is everything apart from removeAll, which needs to be implemented differently for sharded Redis.

Linear Supertypes
AbstractCache[F, V], LoggingSupport[F], Cache[F, V], CacheAlg[F, V], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RedisCacheBase
  2. AbstractCache
  3. LoggingSupport
  4. Cache
  5. CacheAlg
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. abstract type JClient <: BinaryJedisCommands with Closeable
    Attributes
    protected

Abstract Value Members

  1. implicit abstract def F: Sync[F]
    Attributes
    protected
    Definition Classes
    AbstractCache → LoggingSupport
  2. implicit abstract def MonadCancelThrowF: MonadCancelThrow[F]
    Attributes
    protected
  3. abstract def codec: Codec[V]
    Attributes
    protected
  4. abstract def config: CacheConfig
    Definition Classes
    RedisCacheBase → Cache
  5. abstract def doRemoveAll: F[Unit]
    Attributes
    protected
    Definition Classes
    AbstractCache
  6. abstract def jedisPool: Pool[JClient]
    Attributes
    protected

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. final def caching(keyParts: Any*)(ttl: Option[Duration])(f: => V)(implicit flags: Flags): F[V]
    Definition Classes
    AbstractCache → CacheAlg
  6. def cachingF(keyParts: Any*)(ttl: Option[Duration])(f: F[V])(implicit flags: Flags): F[V]
    Definition Classes
    AbstractCache → CacheAlg
  7. def cachingForMemoize(baseKey: String)(ttl: Option[Duration])(f: => V)(implicit flags: Flags): F[V]
    Definition Classes
    AbstractCache → Cache
  8. def cachingForMemoizeF(baseKey: String)(ttl: Option[Duration])(f: F[V])(implicit flags: Flags): F[V]
    Definition Classes
    AbstractCache → Cache
  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  10. val close: F[Unit]
    Definition Classes
    RedisCacheBase → CacheAlg
  11. def doGet(key: String): F[Option[V]]
    Attributes
    protected
    Definition Classes
    RedisCacheBase → AbstractCache
  12. def doPut(key: String, value: V, ttl: Option[Duration]): F[Unit]
    Attributes
    protected
    Definition Classes
    RedisCacheBase → AbstractCache
  13. def doRemove(key: String): F[Unit]
    Attributes
    protected
    Definition Classes
    RedisCacheBase → AbstractCache
  14. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  16. final def get(keyParts: Any*)(implicit flags: Flags): F[Option[V]]
    Definition Classes
    AbstractCache → CacheAlg
  17. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  18. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  19. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  20. def logCacheHitOrMiss[A](key: String, result: Option[A]): F[Unit]
    Attributes
    protected
    Definition Classes
    LoggingSupport
  21. def logCachePut(key: String, ttl: Option[Duration]): F[Unit]
    Attributes
    protected
    Definition Classes
    LoggingSupport
  22. final val logger: Logger[F]
    Attributes
    protected
    Definition Classes
    RedisCacheBase → LoggingSupport
  23. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  25. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  26. final def put(keyParts: Any*)(value: V, ttl: Option[Duration])(implicit flags: Flags): F[Unit]
    Definition Classes
    AbstractCache → CacheAlg
  27. final def remove(keyParts: Any*): F[Unit]
    Definition Classes
    AbstractCache → CacheAlg
  28. final def removeAll: F[Unit]
    Definition Classes
    AbstractCache → CacheAlg
  29. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  30. def toString(): String
    Definition Classes
    AnyRef → Any
  31. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  32. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  33. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  34. final def withJedis[T](f: (JClient) => F[T]): F[T]

    Borrow a Jedis client from the pool, perform some operation and then return the client to the pool.

    Borrow a Jedis client from the pool, perform some operation and then return the client to the pool.

    T

    return type of the block

    f

    block that uses the Jedis client.

    returns

    the result of executing the block

    Attributes
    protected

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from AbstractCache[F, V]

Inherited from LoggingSupport[F]

Inherited from Cache[F, V]

Inherited from CacheAlg[F, V]

Inherited from AnyRef

Inherited from Any

Ungrouped