(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.
(destroy dura)
Convenience fn for cleaning up the persistent storage of a duratom.
Convenience fn for cleaning up the persistent storage of a duratom.
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`.
(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.
(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.
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close