Liking cljdoc? Tell your friends :D

molecula.transaction


*t*clj

source

->transactionclj

(->transaction conn)
source

CFnclj

source

commitclj

(commit retries)

Returns:

  • nil if everything went ok
  • an error "object" if anything went wrong
Returns:
- nil if everything went ok
- an error "object" if anything went wrong
sourceraw docstring

commute-refclj

(commute-ref rk)

Applies all ref's commutes starting with ref's oldval

Applies all ref's commutes starting with ref's oldval
sourceraw docstring

dispatch-agentsclj

(dispatch-agents)
source

do-commuteclj

(do-commute ref f args)
source

do-ensureclj

(do-ensure ref)
source

do-getclj

(do-get ref)
source

do-setclj

(do-set ref value)
source

notify-watchesclj

(notify-watches)
(notify-watches rks)

Notifies watches on all updatables given the latest oldval and latest tval

Notifies watches on all updatables given the latest oldval and latest tval
sourceraw docstring

RETRY_LIMITclj

source

runclj

(run f)
source

run-in-transactionclj

(run-in-transaction conn f)
source

running?clj

(running?)
source

tconnclj

(tconn)
source

tcontains?clj

(tcontains? op rk)
source

tgetclj

(tget & ks)
source

throw-when-nil-tclj

(throw-when-nil-t)

Throws IllegalStateException if t is nil. Returns nil otherwise. This is equivalent to clojure.lang.LockingTransaction/getEx() Used in RedisRef to guard methods from being called outside transaction.

Throws IllegalStateException if *t* is nil. Returns nil otherwise.
This is equivalent to clojure.lang.LockingTransaction/getEx()
Used in RedisRef to guard methods from being called outside
transaction.
sourceraw docstring

tput-commute!cljmacro

(tput-commute! rk cfn)
source

tput-ensure!cljmacro

(tput-ensure! rk)
source

tput-oldval!cljmacro

(tput-oldval! rk oldval)
source

tput-ref!cljmacro

(tput-ref! ref)
source

tput-set!cljmacro

(tput-set! rk)
source

tput-tval!cljmacro

(tput-tval! rk tval)
source

updatablesclj

(updatables)

Returns a set of refs that have been altered or commuted

Returns a set of refs that have been altered or commuted
sourceraw docstring

validateclj

(validate)
(validate rks)

Validates all updatables given the latest tval

Validates all updatables given the latest tval
sourceraw docstring

validate*clj

(validate* vf val)

This is a clojure re-implementation of clojure.lang.ARef/validate because it cannot be accessed by subclasses. It is needed to invoke when changing ref state

This is a clojure re-implementation of clojure.lang.ARef/validate because it cannot be accessed by subclasses. It is needed to invoke when changing ref state
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close