class MemcachedCache[V] extends AbstractCache[V] with MemcachedTTLConverter
Wrapper around spymemcached
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- MemcachedCache
- MemcachedTTLConverter
- AbstractCache
- LoggingSupport
- Cache
- CacheAlg
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new MemcachedCache(client: MemcachedClient, keySanitizer: MemcachedKeySanitizer = ReplaceAndTruncateSanitizer())(implicit config: CacheConfig, codec: Codec[V])
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- final def caching[F[_]](keyParts: Any*)(ttl: Option[Duration])(f: => V)(implicit mode: Mode[F], flags: Flags): F[V]
- Definition Classes
- AbstractCache → CacheAlg
- def cachingF[F[_]](keyParts: Any*)(ttl: Option[Duration])(f: => F[V])(implicit mode: Mode[F], flags: Flags): F[V]
- Definition Classes
- AbstractCache → CacheAlg
- def cachingForMemoize[F[_]](baseKey: String)(ttl: Option[Duration])(f: => V)(implicit mode: Mode[F], flags: Flags): F[V]
- Definition Classes
- AbstractCache → Cache
- def cachingForMemoizeF[F[_]](baseKey: String)(ttl: Option[Duration])(f: => F[V])(implicit mode: Mode[F], flags: Flags): F[V]
- Definition Classes
- AbstractCache → Cache
- val client: MemcachedClient
- def clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def close[F[_]]()(implicit mode: Mode[F]): F[Any]
- Definition Classes
- MemcachedCache → CacheAlg
- implicit val config: CacheConfig
- Definition Classes
- MemcachedCache → Cache
- def doGet[F[_]](key: String)(implicit mode: Mode[F]): F[Option[V]]
- Attributes
- protected
- Definition Classes
- MemcachedCache → AbstractCache
- def doPut[F[_]](key: String, value: V, ttl: Option[Duration])(implicit mode: Mode[F]): F[Any]
- Attributes
- protected
- Definition Classes
- MemcachedCache → AbstractCache
- def doRemove[F[_]](key: String)(implicit mode: Mode[F]): F[Any]
- Attributes
- protected
- Definition Classes
- MemcachedCache → AbstractCache
- def doRemoveAll[F[_]]()(implicit mode: Mode[F]): F[Any]
- Attributes
- protected
- Definition Classes
- MemcachedCache → AbstractCache
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def get[F[_]](keyParts: Any*)(implicit mode: Mode[F], flags: Flags): F[Option[V]]
- Definition Classes
- AbstractCache → CacheAlg
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val keySanitizer: MemcachedKeySanitizer
- def logCacheHitOrMiss[A](key: String, result: Option[A]): Unit
- Attributes
- protected
- Definition Classes
- LoggingSupport
- def logCachePut(key: String, ttl: Option[Duration]): Unit
- Attributes
- protected
- Definition Classes
- LoggingSupport
- final val logger: Logger
- Attributes
- protected
- Definition Classes
- MemcachedCache → LoggingSupport
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def put[F[_]](keyParts: Any*)(value: V, ttl: Option[Duration])(implicit mode: Mode[F], flags: Flags): F[Any]
- Definition Classes
- AbstractCache → CacheAlg
- final def remove[F[_]](keyParts: Any*)(implicit mode: Mode[F]): F[Any]
- Definition Classes
- AbstractCache → CacheAlg
- final def removeAll[F[_]]()(implicit mode: Mode[F]): F[Any]
- Definition Classes
- AbstractCache → CacheAlg
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- 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
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()