RedisStore

lightdb.redis.RedisStore
class RedisStore[Doc <: Document[Doc], Model <: DocumentModel[Doc]](name: String, path: Option[Path], model: Model, val storeMode: StoreMode[Doc, Model], hostname: String, port: Int, db: LightDB, storeManager: StoreManager) extends Store[Doc, Model]

Attributes

Graph
Supertypes
class Store[Doc, Model]
trait Disposable
trait Initializable
class Object
trait Matchable
class Any
Show all

Members list

Type members

Inherited classlikes

object transaction

Attributes

Inherited from:
Store
Supertypes
class Object
trait Matchable
class Any
object trigger extends StoreTriggers[Doc]

Attributes

Inherited from:
Store
Supertypes
class StoreTriggers[Doc]
trait StoreTrigger[Doc]
class Object
trait Matchable
class Any

Value members

Concrete methods

override def count(implicit transaction: Transaction[Doc]): Task[Int]

Attributes

Definition Classes
Store
override def exists(id: Id[Doc])(implicit transaction: Transaction[Doc]): Task[Boolean]

Attributes

Definition Classes
Store
override def jsonStream(implicit transaction: Transaction[Doc]): Stream[Json]

Attributes

Definition Classes
Store
override def prepareTransaction(transaction: Transaction[Doc]): Task[Unit]

Attributes

Definition Classes
Store
override def releaseTransaction(transaction: Transaction[Doc]): Task[Unit]

Attributes

Definition Classes
Store
override def truncate()(implicit transaction: Transaction[Doc]): Task[Int]

Attributes

Definition Classes
Store

Inherited methods

def apply(id: Id[Doc])(implicit transaction: Transaction[Doc]): Task[Doc]

Attributes

Inherited from:
Store
def apply[V](f: Model => (UniqueIndex[Doc, V], V))(implicit transaction: Transaction[Doc]): Task[Doc]

Attributes

Inherited from:
Store
def delete(id: Id[Doc])(implicit transaction: Transaction[Doc]): Task[Boolean]

Attributes

Inherited from:
Store
def delete[V](f: Model => (UniqueIndex[Doc, V], V))(implicit transaction: Transaction[Doc]): Task[Boolean]

Attributes

Inherited from:
Store
def get(id: Id[Doc])(implicit transaction: Transaction[Doc]): Task[Option[Doc]]

Attributes

Inherited from:
Store
def get[V](f: Model => (UniqueIndex[Doc, V], V))(implicit transaction: Transaction[Doc]): Task[Option[Doc]]

Attributes

Inherited from:
Store
def getAll(ids: Seq[Id[Doc]])(implicit transaction: Transaction[Doc]): Stream[Doc]

Attributes

Inherited from:
Store
def getOrCreate(id: Id[Doc], create: => Doc, establishLock: Boolean)(implicit transaction: Transaction[Doc]): Task[Doc]

Attributes

Inherited from:
Store
final def insert(docs: Seq[Doc])(implicit transaction: Transaction[Doc]): Task[Seq[Doc]]

Attributes

Inherited from:
Store
final def insert(doc: Doc)(implicit transaction: Transaction[Doc]): Task[Doc]

Attributes

Inherited from:
Store
def isDisposes: Boolean

Attributes

Inherited from:
Disposable
def isInitialized: Boolean

Attributes

Inherited from:
Initializable
def list()(implicit transaction: Transaction[Doc]): Task[List[Doc]]

Attributes

Inherited from:
Store
def modify(id: Id[Doc], establishLock: Boolean, deleteOnNone: Boolean)(f: Forge[Option[Doc], Option[Doc]])(implicit transaction: Transaction[Doc]): Task[Option[Doc]]

Attributes

Inherited from:
Store
def optimize(): Task[Unit]

Optimizes this store. This allows the implementation an opportunity to clean up, optimize, etc. to improve the performance of the store.

Optimizes this store. This allows the implementation an opportunity to clean up, optimize, etc. to improve the performance of the store.

Attributes

Inherited from:
Store
def reIndex(doc: Doc): Task[Boolean]

Attributes

Inherited from:
Store
def reIndex(): Task[Boolean]

Attributes

Inherited from:
Store
def stream(implicit transaction: Transaction[Doc]): Stream[Doc]

Attributes

Inherited from:
Store
def supportsArbitraryQuery: Boolean

Attributes

Inherited from:
Store
final def upsert(docs: Seq[Doc])(implicit transaction: Transaction[Doc]): Task[Seq[Doc]]

Attributes

Inherited from:
Store
final def upsert(doc: Doc)(implicit transaction: Transaction[Doc]): Task[Doc]

Attributes

Inherited from:
Store
def verify(): Task[Boolean]

Attributes

Inherited from:
Store

Concrete fields

val storeMode: StoreMode[Doc, Model]

Inherited fields

lazy val dispose: Task[Unit]

Calls doDispose() exactly one time. Safe to call multiple times.

Calls doDispose() exactly one time. Safe to call multiple times.

Attributes

Inherited from:
Disposable
lazy val fields: List[Field[Doc, _]]

Attributes

Inherited from:
Store
lazy val hasSpatial: Task[Boolean]

Attributes

Inherited from:
Store
lazy val idField: UniqueIndex[Doc, Id[Doc]]

Attributes

Inherited from:
Store
lazy val init: Task[Unit]

Calls initialize() exactly one time. Safe to call multiple times.

Calls initialize() exactly one time. Safe to call multiple times.

Attributes

Inherited from:
Initializable
val lightDB: LightDB

Attributes

Inherited from:
Store
lazy val lock: LockManager[Id[Doc], Doc]

Attributes

Inherited from:
Store
lazy val t: Transactionless[Doc, Model]

Attributes

Inherited from:
Store