com.redis.api

BaseApi

trait BaseApi extends AnyRef

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

Abstract Value Members

  1. abstract def auth(secret: Any)(implicit format: Format): Boolean

    auths with the server.

  2. abstract def dbsize: Option[Long]

    returns the size of the db.

  3. abstract def del(key: Any, keys: Any*)(implicit format: Format): Option[Long]

    deletes the specified keys.

  4. abstract def exists(key: Any)(implicit format: Format): Boolean

    test if the specified key exists.

  5. abstract def expire(key: Any, ttl: Int)(implicit format: Format): Boolean

    sets the expire time (in sec.

    sets the expire time (in sec.) for the specified key.

  6. abstract def expireat(key: Any, timestamp: Long)(implicit format: Format): Boolean

    sets the expire time for the specified key.

  7. abstract def flushall: Boolean

    removes data from all the DB's.

  8. abstract def flushdb: Boolean

    removes all the DB data.

  9. abstract def getConfig(key: Any = "*")(implicit format: Format): Option[Map[String, Option[String]]]

    CONFIG GET

  10. abstract def getType(key: Any)(implicit format: Format): Option[String]

    returns the type of the value stored at key in form of a string.

  11. abstract def keys[A](pattern: Any = "*")(implicit format: Format, parse: Parse[A]): Option[List[Option[A]]]

    returns all the keys matching the glob-style pattern.

  12. abstract def move(key: Any, db: Int)(implicit format: Format): Boolean

    Move the specified key from the currently selected DB to the specified destination DB.

  13. abstract def persist(key: Any)(implicit format: Format): Boolean

    Remove the existing timeout on key, turning the key from volatile (a key with an expire set) to persistent (a key that will never expire as no timeout is associated).

  14. abstract def pexpire(key: Any, ttlInMillis: Int)(implicit format: Format): Boolean

    sets the expire time (in milli sec.

    sets the expire time (in milli sec.) for the specified key.

  15. abstract def pexpireat(key: Any, timestampInMillis: Long)(implicit format: Format): Boolean

    sets the expire timestamp in millis for the specified key.

  16. abstract def ping: Option[String]

    ping

  17. abstract def pttl(key: Any)(implicit format: Format): Option[Long]

    returns the remaining time to live of a key that has a timeout in millis

  18. abstract def quit: Boolean

    exits the server.

  19. abstract def randomkey[A](implicit parse: Parse[A]): Option[A]

    returns a randomly selected key from the currently selected DB.

  20. abstract def rename(oldkey: Any, newkey: Any)(implicit format: Format): Boolean

    atomically renames the key oldkey to newkey.

  21. abstract def renamenx(oldkey: Any, newkey: Any)(implicit format: Format): Boolean

    rename oldkey into newkey but fails if the destination key newkey already exists.

  22. abstract def scan[A](cursor: Int, pattern: Any = "*", count: Int = 10)(implicit format: Format, parse: Parse[A]): Option[(Option[Int], Option[List[Option[A]]])]

    Incrementally iterate the keys space (since 2.

    Incrementally iterate the keys space (since 2.8)

  23. abstract def select(index: Int): Boolean

    selects the DB to connect, defaults to 0 (zero).

  24. abstract def setConfig(key: Any, value: Any)(implicit format: Format): Option[String]

    CONFIG SET

  25. abstract def sort[A](key: String, limit: Option[(Int, Int)] = None, desc: Boolean = false, alpha: Boolean = false, by: Option[String] = None, get: List[String] = Nil)(implicit format: Format, parse: Parse[A]): Option[List[Option[A]]]

    sort keys in a set, and optionally pull values for them

  26. abstract def sortNStore[A](key: String, limit: Option[(Int, Int)] = None, desc: Boolean = false, alpha: Boolean = false, by: Option[String] = None, get: List[String] = Nil, storeAt: String)(implicit format: Format, parse: Parse[A]): Option[Long]

    sort keys in a set, and stores result in the supplied key

  27. abstract def time[A](implicit format: Format, parse: Parse[A]): Option[List[Option[A]]]

    returns the current server time as a two items lists: a Unix timestamp and the amount of microseconds already elapsed in the current second.

  28. abstract def ttl(key: Any)(implicit format: Format): Option[Long]

    returns the remaining time to live of a key that has a timeout

  29. abstract def unwatch(): Boolean

    Flushes all the previously watched keys for a transaction

  30. abstract def vexists(key: Any, keys: Any*)(implicit format: Format): Option[Long]

    returns the total number of keys existing.

    returns the total number of keys existing. (since 3.0.3)

  31. abstract def watch(key: Any, keys: Any*)(implicit format: Format): Boolean

    Marks the given keys to be watched for conditional execution of a transaction.

Concrete 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. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  10. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  11. def hashCode(): Int

    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  12. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  15. final def notifyAll(): Unit

    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  16. val pong: Option[String]

    Attributes
    protected
  17. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  18. def toString(): String

    Definition Classes
    AnyRef → Any
  19. final def wait(arg0: Long, arg1: Int): Unit

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from AnyRef

Inherited from Any

Ungrouped