► |  | Web Server: PLT HTTP Server

1 | Running the Web Server
2 | Writing Servlets
3 | Extending the Web Server
4 | Troubleshooting and Tips
5 | Acknowledgements
| Index

► | 3 | Extending the Web Server

3.1 | Configuration
3.2 | Setting Up Servlets
3.3 | Dispatchers
3.4 | Web Config Unit
3.5 | Web Server Unit
3.6 | Internal

▼ | 3.6 | Internal

3.6.1 | Timers
3.6.2 | Connection Manager
3.6.3 | Dispatching Server
3.6.4 | Serializable Closures
3.6.5 | Cache Table
3.6.6 | MIME Types
3.6.7 | Serialization Utilities
3.6.8 | URL Param
3.6.9 | Miscellaneous Utilities

On this page:

make-cache-table
cache-table-lookup!
cache-table-clear!
cache-table?

Version: 4.1.4
top← prev up next →

##### 3.6.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.

top← prev up next →