class MemcachedCache[V] extends AbstractCache[V] with MemcachedTTLConverter

Wrapper around spymemcached

Linear Supertypes
MemcachedTTLConverter, AbstractCache[V], LoggingSupport, Cache[V], CacheAlg[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. All

Instance Constructors

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

Inherited from MemcachedTTLConverter

Inherited from AbstractCache[V]

Inherited from LoggingSupport

Inherited from Cache[V]

Inherited from CacheAlg[V]

Inherited from AnyRef

Inherited from Any

Ungrouped