trait BaseOps extends BaseApi
- Alphabetic
- By Inheritance
- BaseOps
- BaseApi
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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
- def auth(secret: Any)(implicit format: Format): Boolean
auths with the server.
- def clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def dbsize: Option[Long]
returns the size of the db.
- def del(key: Any, keys: Any*)(implicit format: Format): Option[Long]
deletes the specified keys.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def exists(key: Any)(implicit format: Format): Boolean
test if the specified key exists.
- def expire(key: Any, ttl: Int)(implicit format: Format): Boolean
sets the expire time (in sec.) for the specified key.
- def expireat(key: Any, timestamp: Long)(implicit format: Format): Boolean
sets the expire time for the specified key.
- def finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def flushall: Boolean
removes data from all the DB's.
- def flushdb: Boolean
removes all the DB data.
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getConfig(key: Any)(implicit format: Format): Option[Map[String, Option[String]]]
CONFIG GET
- def getType(key: Any)(implicit format: Format): Option[String]
returns the type of the value stored at key in form of a string.
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def keys[A](pattern: Any)(implicit format: Format, parse: Parse[A]): Option[List[Option[A]]]
returns all the keys matching the glob-style pattern.
- def move(key: Any, db: Int)(implicit format: Format): Boolean
Move the specified key from the currently selected DB to the specified destination DB.
- 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()
- 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).
- def pexpire(key: Any, ttlInMillis: Int)(implicit format: Format): Boolean
sets the expire time (in milli sec.) for the specified key.
- def pexpireat(key: Any, timestampInMillis: Long)(implicit format: Format): Boolean
sets the expire timestamp in millis for the specified key.
- def ping: Option[String]
ping
- val pong: Option[String]
- Attributes
- protected
- Definition Classes
- BaseApi
- def pttl(key: Any)(implicit format: Format): Option[Long]
returns the remaining time to live of a key that has a timeout in millis
- def quit: Boolean
exits the server.
- def randomkey[A](implicit parse: Parse[A]): Option[A]
returns a randomly selected key from the currently selected DB.
- def rename(oldkey: Any, newkey: Any)(implicit format: Format): Boolean
atomically renames the key oldkey to newkey.
- def renamenx(oldkey: Any, newkey: Any)(implicit format: Format): Boolean
rename oldkey into newkey but fails if the destination key newkey already exists.
- def scan[A](cursor: Int, pattern: Any, count: Int)(implicit format: Format, parse: Parse[A]): Option[(Option[Int], Option[List[Option[A]]])]
Incrementally iterate the keys space (since 2.8)
- def select(index: Int): Boolean
selects the DB to connect, defaults to 0 (zero).
- def setConfig(key: Any, value: Any)(implicit format: Format): Option[String]
CONFIG SET
- def sort[A](key: String, limit: Option[(Int, Int)], desc: Boolean, alpha: Boolean, by: Option[String], get: List[String])(implicit format: Format, parse: Parse[A]): Option[List[Option[A]]]
sort keys in a set, and optionally pull values for them
- def sortNStore[A](key: String, limit: Option[(Int, Int)], desc: Boolean, alpha: Boolean, by: Option[String], get: List[String], storeAt: String)(implicit format: Format, parse: Parse[A]): Option[Long]
sort keys in a set, and stores result in the supplied key
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- 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.
- def toString(): String
- Definition Classes
- AnyRef → Any
- def ttl(key: Any)(implicit format: Format): Option[Long]
returns the remaining time to live of a key that has a timeout
- def unwatch(): Boolean
Flushes all the previously watched keys for a transaction
- 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()
- def watch(key: Any, keys: Any*)(implicit format: Format): Boolean
Marks the given keys to be watched for conditional execution of a transaction.