1 Running the Web Server
2 Scheme Servlets
3 Web Language Servlets
4 Configuration
5 Dispatchers
6 Web Config Unit
7 Web Server Unit
8 Continuation Managers
9 Internal
10 Troubleshooting
11 Acknowledgements
Index
On this page:
make-cache-table
cache-table-lookup!
cache-table-clear!
cache-table?
Version: 4.0.2

 

9.5 Cache Table

 (require web-server/private/cache-table)

"private/cache-table.ss" provides a set of caching hash table functions.

(make-cache-table)  cache-table?

Constructs a cache-table.

(cache-table-lookup! ct id mk)  any/c

  ct : cache-table?

  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.

(cache-table-clear! ct)  void?

  ct : cache-table?

Clears all entries in ct.

(cache-table? v)  boolean?

  v : any/c

Determines if v is a cache table.