Liking cljdoc? Tell your friends :D

duratom.core


backend-snapshotclj

(backend-snapshot dura)

Convenience fn for acquiring a snapshot of the persistent storage of a duratom.

Convenience fn for acquiring a snapshot of
the persistent storage of a duratom.
sourceraw docstring

default-file-rwclj

source

default-postgres-rwclj

source

default-s3-rwclj

source

DEFAULT_COMMIT_MODEclj

source

destroyclj

(destroy dura)

Convenience fn for cleaning up the persistent storage of a duratom.

Convenience fn for cleaning up the persistent storage of a duratom.
sourceraw docstring

duratomcljmultimethod

Top level constructor function for the <Duratom> class. Built-in <backed-by> types are :local-file, :postgres-db & :aws-s3.

Top level constructor function for the <Duratom> class.
Built-in <backed-by> types are `:local-file`, `:postgres-db` & `:aws-s3`.
sourceraw docstring

file-atomclj

(file-atom file-path)
(file-atom file-path lock initial-value)
(file-atom file-path lock initial-value rw)

Creates and returns a file-backed atom (on the local filesystem). If the file exists, it is read and becomes the initial value. Otherwise, the initial value is <init> and the file <file-path> is updated.

Creates and returns a file-backed atom (on the local filesystem). If the file exists,
it is read and becomes the initial value. Otherwise, the initial value is <init> and the file <file-path> is updated.
sourceraw docstring

postgres-atomclj

(postgres-atom db-config table-name)
(postgres-atom db-config table-name row-id)
(postgres-atom db-config table-name row-id lock initial-value)
(postgres-atom db-config table-name row-id lock initial-value rw)

Creates and returns a PostgreSQL-backed atom. If the location denoted by the combination of <db-config> and <table-name> exists, it is read and becomes the initial value. Otherwise, the initial value is <init> and the table <table-name> is updated.

Creates and returns a PostgreSQL-backed atom. If the location denoted by the combination of <db-config> and <table-name> exists,
it is read and becomes the initial value. Otherwise, the initial value is <init> and the table <table-name> is updated.
sourceraw docstring

s3-atomclj

(s3-atom creds bucket k)
(s3-atom creds bucket k lock initial-value)
(s3-atom creds bucket k lock initial-value rw)

Creates and returns an S3-backed atom. If the location denoted by the combination of <bucket> and <k> exists, it is read and becomes the initial value. Otherwise, the initial value is <init> and the bucket key <k> is updated.

Creates and returns an S3-backed atom. If the location denoted by the combination of <bucket> and <k> exists,
it is read and becomes the initial value. Otherwise, the initial value is <init> and the bucket key <k> is updated.
sourceraw docstring

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

× close