Liking cljdoc? Tell your friends :D

clockwork.store


in-memory-storeclj

(in-memory-store)
source

Storagecljprotocol

Storage is how you create custom storage for your profiling results. In production, you'll want to use a persistent data store that is shared between multiple threads, with your database being a good example. Key-Value stores such as redis, foundationdb etc are also especially suited for storage, as they're fast and the interface required is very small.

Storage is how you create custom storage for your profiling results. In
production, you'll want to use a persistent data store that is shared between
multiple threads, with your database being a good example. Key-Value stores
such as redis, foundationdb etc are also especially suited for storage, as
they're fast and the interface required is very small.

fetchclj

(fetch this id)

fetch takes the id asked for and returns the resulting string from the storage.

fetch takes the `id` asked for and returns the resulting string from the
storage.

saveclj

(save this id data)

save takes id and data to store (which is a string with an actual serialized data inside) and puts it into a storage.

save takes `id` and `data` to store (which is a string with an actual
serialized data inside) and puts it into a storage.
sourceraw docstring

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

× close