Trait

scalacache.redis

RedisCacheBase

Related Doc: package redis

Permalink

trait RedisCacheBase[V] extends AbstractCache[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[V], LoggingSupport, Cache[V], CacheAlg[V], AnyRef, Any
Known Subclasses
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. All

Type Members

  1. abstract type JClient <: BinaryJedisCommands with Closeable

    Permalink
    Attributes
    protected

Abstract Value Members

  1. abstract def codec: Codec[V]

    Permalink
    Attributes
    protected
  2. abstract def config: CacheConfig

    Permalink
    Definition Classes
    RedisCacheBase → Cache
  3. abstract def doRemoveAll[F[_]]()(implicit mode: Mode[F]): F[Any]

    Permalink
    Attributes
    protected
    Definition Classes
    AbstractCache
  4. abstract def jedisPool: Pool[JClient]

    Permalink
    Attributes
    protected

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. final def caching[F[_]](keyParts: Any*)(ttl: Option[Duration])(f: ⇒ V)(implicit mode: Mode[F], flags: Flags): F[V]

    Permalink
    Definition Classes
    AbstractCache → CacheAlg
  6. def cachingF[F[_]](keyParts: Any*)(ttl: Option[Duration])(f: ⇒ F[V])(implicit mode: Mode[F], flags: Flags): F[V]

    Permalink
    Definition Classes
    AbstractCache → CacheAlg
  7. def cachingForMemoize[F[_]](baseKey: String)(ttl: Option[Duration])(f: ⇒ V)(implicit mode: Mode[F], flags: Flags): F[V]

    Permalink
    Definition Classes
    AbstractCache → Cache
  8. def cachingForMemoizeF[F[_]](baseKey: String)(ttl: Option[Duration])(f: ⇒ F[V])(implicit mode: Mode[F], flags: Flags): F[V]

    Permalink
    Definition Classes
    AbstractCache → Cache
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def close[F[_]]()(implicit mode: Mode[F]): F[Any]

    Permalink
    Definition Classes
    RedisCacheBase → CacheAlg
  11. def doGet[F[_]](key: String)(implicit mode: Mode[F]): F[Option[V]]

    Permalink
    Attributes
    protected
    Definition Classes
    RedisCacheBase → AbstractCache
  12. def doPut[F[_]](key: String, value: V, ttl: Option[Duration])(implicit mode: Mode[F]): F[Any]

    Permalink
    Attributes
    protected
    Definition Classes
    RedisCacheBase → AbstractCache
  13. def doRemove[F[_]](key: String)(implicit mode: Mode[F]): F[Any]

    Permalink
    Attributes
    protected
    Definition Classes
    RedisCacheBase → AbstractCache
  14. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  16. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. final def get[F[_]](keyParts: Any*)(implicit mode: Mode[F], flags: Flags): F[Option[V]]

    Permalink
    Definition Classes
    AbstractCache → CacheAlg
  18. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  19. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  20. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  21. def logCacheHitOrMiss[A](key: String, result: Option[A]): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingSupport
  22. def logCachePut(key: String, ttl: Option[Duration]): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingSupport
  23. final val logger: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    RedisCacheBase → LoggingSupport
  24. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  25. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  26. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  27. final def put[F[_]](keyParts: Any*)(value: V, ttl: Option[Duration])(implicit mode: Mode[F], flags: Flags): F[Any]

    Permalink
    Definition Classes
    AbstractCache → CacheAlg
  28. final def remove[F[_]](keyParts: Any*)(implicit mode: Mode[F]): F[Any]

    Permalink
    Definition Classes
    AbstractCache → CacheAlg
  29. final def removeAll[F[_]]()(implicit mode: Mode[F]): F[Any]

    Permalink
    Definition Classes
    AbstractCache → CacheAlg
  30. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  31. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  32. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def withJedisCommands[T](f: (BinaryJedisCommands) ⇒ T): T

    Permalink

    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

Inherited from AbstractCache[V]

Inherited from LoggingSupport

Inherited from Cache[V]

Inherited from CacheAlg[V]

Inherited from AnyRef

Inherited from Any

Ungrouped