Liking cljdoc? Tell your friends :D
Clojure only.

clojure-miniprofiler.store


Storagecljprotocol

Storage is how you create custom storage for your miniprofiler 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, riak etc are also especially suited to miniprofiler storage, as they're fast and the interface required is very small.

Storage is how you create custom storage for your
miniprofiler 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, riak etc are also especially suited to miniprofiler 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 deserialized result from the specified session.

fetch takes the Id asked for and returns the deserialized result from
the specified session.

saveclj

(save this profile)

save takes a profile (which is effectively an arbitrary map), and stores it in storage. Note that the map isn't serialized, you'll have to do that logic yourself. The key the map should be stored under can be found in it as "Id"

save takes a profile (which is effectively an arbitrary map),
 and stores it in storage. Note that the map isn't serialized, you'll
 have to do that logic yourself.
The key the map should be stored under can be found in it as "Id"
sourceraw docstring

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

× close