play.cache.redis

RedisCache20

class RedisCache20 extends CacheAPI20

Implementation of ExtendedCacheAPI using Akka serializers and Redis connector.

Linear Supertypes
CacheAPI20, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. RedisCache20
  2. CacheAPI20
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RedisCache20(cacheAPI: CacheAPI)(implicit app: api.Application)

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. val DefaultExpiration: Int

    by default, values expires in .

    by default, values expires in ..

    Attributes
    protected
  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. val cacheAPI: CacheAPI

    Attributes
    protected
  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def config: Config

    Attributes
    protected
  11. implicit var context: ExecutionContext

    default invocation context of all cache commands

    default invocation context of all cache commands

    Attributes
    protected
  12. def decode[T](value: String)(implicit classTag: ClassTag[T]): Try[T]

    decode given value from string to object

    decode given value from string to object

    Attributes
    protected
  13. def duration(key: String): Int

    Attributes
    protected
  14. def encode[T](value: T)(implicit classTag: ClassTag[T]): Try[String]

    encode given object to string

    encode given object to string

    Attributes
    protected
  15. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  17. val expiration: Config

    Attributes
    protected
  18. def expire(key: String, expiration: Int): Unit

    refreshes expiration time on a given key, useful, e.

    refreshes expiration time on a given key, useful, e.g., when we want to refresh session duration

    Definition Classes
    RedisCache20CacheAPI20
  19. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. def get[T](key: String)(implicit classTag: ClassTag[T]): Future[Option[T]]

    Retrieve a value from the cache for the given type

    Retrieve a value from the cache for the given type

    Definition Classes
    RedisCache20CacheAPI20
  21. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  22. def getOrElse[T](key: String, expiration: Option[Int] = None)(orElse: ⇒ Future[T])(implicit classTag: ClassTag[T]): Future[T]

    Retrieve a value from the cache, or set it from a default function.

    Retrieve a value from the cache, or set it from a default function.

    Definition Classes
    RedisCache20CacheAPI20
  23. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  24. def invalidate(): Future[Try[String]]

    invalidate cache

    invalidate cache

    Definition Classes
    RedisCache20CacheAPI20
  25. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  26. val log: api.Logger

    Attributes
    protected
  27. def matching(pattern: String): Future[Set[String]]

    finds all keys matching the pattern.

    finds all keys matching the pattern. complexity O(n)

    Definition Classes
    RedisCache20CacheAPI20
  28. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  29. final def notify(): Unit

    Definition Classes
    AnyRef
  30. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  31. def remove(keys: String*): Future[Try[String]]

    remove key from cache

    remove key from cache

    Definition Classes
    RedisCache20CacheAPI20
  32. def removeMatching(pattern: String): Future[Unit]

    removes all keys matching the pattern.

    removes all keys matching the pattern. complexity O(n)

    Definition Classes
    RedisCache20CacheAPI20
  33. def set[T](key: String, value: T, expiration: Option[Int] = None)(implicit classTag: ClassTag[T]): Future[Try[String]]

    Set a value into the cache.

    Set a value into the cache.

    Definition Classes
    RedisCache20CacheAPI20
  34. def setIfNotExists[T](key: String, expiration: Option[Int] = None)(orElse: ⇒ Future[T])(implicit classTag: ClassTag[T]): Future[Try[String]]

    Retrieve a value from the cache, or set it from a default function.

    Retrieve a value from the cache, or set it from a default function.

    Definition Classes
    RedisCache20CacheAPI20
  35. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  36. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from CacheAPI20

Inherited from AnyRef

Inherited from Any

Ungrouped