Liking cljdoc? Tell your friends :D
Clojure only.

b-logic-basics.storage.core


Storagecljprotocol

add-objclj

(add-obj this id obj)

Stores an obj and returns the id if success, nil if id already in use.

Stores an obj and returns the id if success, nil if id already in use.

delete-objclj

(delete-obj this id)

Removes the association ID->obj if it exists. Returns nil.

Removes the association ID->obj if it exists. Returns nil.

get-objclj

(get-obj this id)

Returns an obj for a given ID. Returns nil if there's no associated obj.

Returns an obj for a given ID. Returns nil if there's no associated obj.

list-objsclj

(list-objs this)

Returns a map of all known IDs to obj.

Returns a map of all known IDs to obj.

update-objclj

(update-obj this id new-obj)

Updates id to point to the new-obj. Returns ID if success, otherwise nil.

Updates id to point to the new-obj. Returns ID if success, otherwise nil.
source

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

× close