class MemcachedCache[F[_], V] extends AbstractCache[F, V] with MemcachedTTLConverter

Wrapper around spymemcached

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

Instance Constructors

  1. new MemcachedCache(client: MemcachedClient, keySanitizer: MemcachedKeySanitizer = ReplaceAndTruncateSanitizer())(implicit arg0: Async[F], config: CacheConfig, codec: Codec[V])

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. def F: Async[F]
    Attributes
    protected
    Definition Classes
    MemcachedCache → AbstractCache → LoggingSupport
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. final def caching(keyParts: Any*)(ttl: Option[Duration])(f: => V)(implicit flags: Flags): F[V]
    Definition Classes
    AbstractCache → CacheAlg
  7. def cachingF(keyParts: Any*)(ttl: Option[Duration])(f: F[V])(implicit flags: Flags): F[V]
    Definition Classes
    AbstractCache → CacheAlg
  8. def cachingForMemoize(baseKey: String)(ttl: Option[Duration])(f: => V)(implicit flags: Flags): F[V]
    Definition Classes
    AbstractCache → Cache
  9. def cachingForMemoizeF(baseKey: String)(ttl: Option[Duration])(f: F[V])(implicit flags: Flags): F[V]
    Definition Classes
    AbstractCache → Cache
  10. val client: MemcachedClient
  11. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  12. def close: F[Unit]
    Definition Classes
    MemcachedCache → CacheAlg
  13. implicit val config: CacheConfig
    Definition Classes
    MemcachedCache → Cache
  14. def doGet(key: String): F[Option[V]]
    Attributes
    protected
    Definition Classes
    MemcachedCache → AbstractCache
  15. def doPut(key: String, value: V, ttl: Option[Duration]): F[Unit]
    Attributes
    protected
    Definition Classes
    MemcachedCache → AbstractCache
  16. def doRemove(key: String): F[Unit]
    Attributes
    protected
    Definition Classes
    MemcachedCache → AbstractCache
  17. def doRemoveAll: F[Unit]
    Attributes
    protected
    Definition Classes
    MemcachedCache → AbstractCache
  18. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  20. final def get(keyParts: Any*)(implicit flags: Flags): F[Option[V]]
    Definition Classes
    AbstractCache → CacheAlg
  21. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  22. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  23. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  24. val keySanitizer: MemcachedKeySanitizer
  25. def logCacheHitOrMiss[A](key: String, result: Option[A]): F[Unit]
    Attributes
    protected
    Definition Classes
    LoggingSupport
  26. def logCachePut(key: String, ttl: Option[Duration]): F[Unit]
    Attributes
    protected
    Definition Classes
    LoggingSupport
  27. final val logger: Logger[F]
    Attributes
    protected
    Definition Classes
    MemcachedCache → LoggingSupport
  28. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  29. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  30. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  31. final def put(keyParts: Any*)(value: V, ttl: Option[Duration])(implicit flags: Flags): F[Unit]
    Definition Classes
    AbstractCache → CacheAlg
  32. final def remove(keyParts: Any*): F[Unit]
    Definition Classes
    AbstractCache → CacheAlg
  33. final def removeAll: F[Unit]
    Definition Classes
    AbstractCache → CacheAlg
  34. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  35. def toMemcachedExpiry(ttl: Option[Duration])(implicit clock: Clock = Clock.systemUTC()): Int

    Convert an optional Duration to an int suitable for passing to Memcached.

    Convert an optional Duration to an int suitable for passing to Memcached.

    From the Memcached protocol spec:

    The actual value sent may either be Unix time (number of seconds since January 1, 1970, as a 32-bit value), or a number of seconds starting from current time. In the latter case, this number of seconds may not exceed 60*60*24*30 (number of seconds in 30 days); if the number sent by a client is larger than that, the server will consider it to be real Unix time value rather than an offset from current time.

    ttl

    optional TTL

    returns

    corresponding Memcached expiry

    Definition Classes
    MemcachedTTLConverter
  36. def toString(): String
    Definition Classes
    AnyRef → Any
  37. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  38. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  39. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

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

Inherited from MemcachedTTLConverter

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