Liking cljdoc? Tell your friends :D

code.framework.cache


*memory*clj


*memory-loaded*clj


+cache-dir+clj


+cache-suffix+clj


fetchclj

(fetch ns file-path)
(fetch ns file-path current cache-dir)

reads a the file or gets it from cache

(fetch 'code.manage "src/code/manage.clj") => (any map? nil?)

reads a the file or gets it from cache

(fetch 'code.manage
       "src/code/manage.clj")
=> (any map? nil?)
raw docstring

file-modified?clj

(file-modified? ns file-path)
(file-modified? ns file-path current cache-dir)

checks if code file has been modified from the cache

(file-modified? 'code.manage "src/code/manage.clj") => boolean?

checks if code file has been modified from the cache

(file-modified? 'code.manage
                "src/code/manage.clj")
=> boolean?
raw docstring

init-memory!clj

(init-memory!)
(init-memory! current cache-dir)

initialises memory with cache files

initialises memory with cache files
raw docstring

prepare-inclj

(prepare-in data)

prepares input string to code blocks

(-> (prepare-in '{ns {var {:test {:code "(+ 1 2 3)"}}}}) (get-in '[ns var :test :code]) (first) (block/value)) => '(+ 1 2 3)

prepares input string to code blocks

(-> (prepare-in
     '{ns {var
           {:test {:code "(+ 1 2 3)"}}}})
    (get-in '[ns var :test :code])
    (first)
    (block/value))
=> '(+ 1 2 3)
raw docstring

prepare-outclj

(prepare-out data)

prepares code block for output

(prepare-out {'ns {'var {:test {:code [(block/block '(1 2 3))]}}}}) => '{ns {var {:test {:code "(1 2 3)"}}}}

prepares code block for output

(prepare-out
 {'ns {'var
       {:test {:code [(block/block '(1 2 3))]}}}})
=> '{ns {var {:test {:code "(1 2 3)"}}}}
raw docstring

purgeclj

(purge)
(purge current)

clears the cache

clears the cache
raw docstring

updateclj

(update ns file-path data)
(update ns file-path data current cache-dir cache-suffix)

updates values to the cache

updates values to the cache
raw docstring

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

× close