LockedRedisRef

class LockedRedisRef[F[_]](redisConnection: RedisConnection[F], key: String, acquireTimeout: FiniteDuration, lockTimeout: FiniteDuration, setOpts: SetOpts)(implicit evidence$16: Async[F]) extends Ref[F, Option[String]]
class Ref[F, Option[String]]
trait RefSink[F, Option[String]]
class Object
trait Matchable
class Any

Value members

Concrete methods

def get: F[Option[String]]
def modify[B](f: Option[String] => (Option[String], B)): F[B]
def modifyState[B](state: State[Option[String], B]): F[B]
def set(a: Option[String]): F[Unit]
def tryModify[B](f: Option[String] => (Option[String], B)): F[Option[B]]
def tryModifyState[B](state: State[Option[String], B]): F[Option[B]]

Inherited methods

Replaces the current value with a, returning the previous value.

Replaces the current value with a, returning the previous value.

Inherited from:
Ref

Updates the current value using f and returns the previous value.

Updates the current value using f and returns the previous value.

In case of retries caused by concurrent modifications, the returned value will be the last one before a successful update.

Inherited from:
Ref
def mapK[G[_]](f: FunctionK[F, G])(implicit F: Functor[F]): Ref[G, Option[String]]

Modify the context F using transformation f.

Modify the context F using transformation f.

Inherited from:
Ref

Updates the current value using f, and returns the updated value.

Updates the current value using f, and returns the updated value.

Inherited from:
Ref