On this page:
top
up

5.4Cache TableπŸ”— i

package: web-server-lib
This module provides a set of caching hash table functions.

Constructs a cache-table.

procedure

( cache-table-lookup! ctidmk)any/c

id:symbol?
mk:(-> any/c )
Looks up id in ct. If it is not present, then mk is called to construct the value and add it to ct.

procedure

( cache-table-clear! ct[entry-idsfinalize])void?

entry-ids:(or/c false/c (listof symbol? ))=#f
finalize:(-> any/c void? )=void
If entry-ids is #f, clears all entries in ct. Otherwise, clears only the entries with keys in entry-ids. The procedure finalize is invoked on each entry before it is cleared.

Changed in version 1.3 of package web-server-lib: Added optional argument for list of entry keys.
Changed in version 1.3: Added optional argument for finalizer procedure.

procedure

( cache-table? v)boolean?

v:any/c
Determines if v is a cache table.

top
up

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /