This is the cl-cache-tables Reference Manual, version 0.0.1, generated automatically by Declt version 4.0 beta 2 "William Riker" on Sun Dec 15 04:43:01 2024 GMT+0.
The main system appears first, followed by any subsystem dependency.
cl-cache-tables
A wrapper around native hash-tables to facilitate
in-process caching of common lisp data structures.
Diogo Franco
MIT
0.0.1
package.lisp
(file).
cl-cache-tables.lisp
(file).
Files are sorted by type and then listed depth-first from the systems components trees.
cl-cache-tables/cl-cache-tables.asd
cl-cache-tables/package.lisp
cl-cache-tables/cl-cache-tables.lisp
cl-cache-tables/cl-cache-tables.asd
cl-cache-tables
(system).
cl-cache-tables/cl-cache-tables.lisp
package.lisp
(file).
cl-cache-tables
(system).
cache-table-count
(function).
cache-table-del
(function).
cache-table-get
(function).
cache-table-get-or-fill
(function).
cache-table-p
(function).
cache-table-persist
(function).
cache-table-put
(function).
cache-table-ttl
(function).
clrcache
(function).
copy-cache-table
(function).
make-cache-table
(function).
mapcache
(function).
cache-table
(structure).
cache-table-hash
(reader).
(setf cache-table-hash)
(writer).
cache-table-rehash-size
(reader).
(setf cache-table-rehash-size)
(writer).
cache-table-rehash-threshold
(reader).
(setf cache-table-rehash-threshold)
(writer).
cache-table-size
(reader).
(setf cache-table-size)
(writer).
cache-table-test
(reader).
(setf cache-table-test)
(writer).
copy-hash-table
(function).
Packages are listed by definition order.
cache
common-lisp
.
cache-table-count
(function).
cache-table-del
(function).
cache-table-get
(function).
cache-table-get-or-fill
(function).
cache-table-p
(function).
cache-table-persist
(function).
cache-table-put
(function).
cache-table-ttl
(function).
clrcache
(function).
copy-cache-table
(function).
make-cache-table
(function).
mapcache
(function).
cache-table
(structure).
cache-table-hash
(reader).
(setf cache-table-hash)
(writer).
cache-table-rehash-size
(reader).
(setf cache-table-rehash-size)
(writer).
cache-table-rehash-threshold
(reader).
(setf cache-table-rehash-threshold)
(writer).
cache-table-size
(reader).
(setf cache-table-size)
(writer).
cache-table-test
(reader).
(setf cache-table-test)
(writer).
copy-hash-table
(function).
Definitions are sorted by export status, category, package, and then by lexicographic order.
Returns the number of elements in cache-table. A cleared or new cache-table returns 0.
Deletes key from cache-table. Returns t if the key existed, nil otherwise.
Returns the value at key in cache-table. Also returns a second value that is T if the key exists, and nil if it doesn’t or has expired.
Retrieves key from cache table, similarly to cache-table-get.
When the key is not present, function is called with the key argument,
to compute/retrieve it from another source. cache-table is then populated
with the result and expiration of "expire" seconds. Returns the value
of key. Notice that when function returns nil, that value becomes cached as
any other value, so if you want to signal that some value couldn’t be found,
your function should throw an error
Removes the expiration from a key. Returns nil if key did not exist, and nil otherwise.
Sets key and value in cache-table. Expire is in seconds and defaults to 0, which means that this key will never expire. Returns value.
Returns the time to live (in seconds) of the key in cache-table.
If the key is persistent, returns -1. If it does not exist, returns nil.
Removes all entries from cache-table and returns that empty cache-table.
Creates a new cache-table equal to cache-table and returns it.
Calls fun for every existing and non-expired key value pair in cache-table. Similarly to maphash, returns nil.
hash
.
size
.
test
.
Helper function that copies a hash table.
Jump to: | (
C F M |
---|
Jump to: | (
C F M |
---|
Jump to: | H R S T |
---|
Jump to: | H R S T |
---|
Jump to: | C F P S |
---|
Jump to: | C F P S |
---|