Liking cljdoc? Tell your friends :D

konserve.filestore


*sync-translation*clj

source

connect-fs-storeclj

(connect-fs-store
  path
  &
  {:keys [detect-old-file-schema? ephemeral? config]
   :or {detect-old-file-schema? false
        ephemeral? (fn [path]
                       (some (fn* [p1__28776#]
                                  (re-matches p1__28776#
                                              (-> path .getFileName .toString)))
                             [#"\.nfs.*"]))}
   :as params})

Create Filestore in given path. Optional serializer, read-handlers, write-handlers, buffer-size and config (for fsync) can be changed. Defaults are {:base path :serializer fressian-serializer :read-handlers empty :write-handlers empty :buffer-size 1 MB :config config}

Create Filestore in given path.
Optional serializer, read-handlers, write-handlers, buffer-size and config (for fsync) can be changed.
Defaults are
{:base           path
 :serializer     fressian-serializer
 :read-handlers  empty
 :write-handlers empty
 :buffer-size    1 MB
 :config         config} 
sourceraw docstring

count-konserve-keysclj

(count-konserve-keys dir)
source

delete-storeclj

(delete-store base)

Permanently deletes the base of the store with all files.

Permanently deletes the base of the store with all files.
sourceraw docstring

detect-old-file-schemaclj

(detect-old-file-schema base)
source

get-file-channelclj

(get-file-channel path sync?)
source

list-filesclj

(list-files directory)
(list-files directory ephemeral?)

Lists all files on the first level of a directory.

Lists all files on the first level of a directory.
sourceraw docstring

migrate-old-filesclj

(migrate-old-files {:keys [base] :as backing}
                   old-store-key
                   serializer
                   read-handlers
                   write-handlers
                   {:keys [sync?] :as env})
source

store-exists?clj

(store-exists? base)

Checks if path exists.

Checks if path exists.
sourceraw docstring

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

× close