Outlines how a module can use the Cache API.

@todo: Demonstrate cache expiration.

File

modules/examples/cache_example/cache_example.module

Functions

Namesort ascending Description
cache_example_page_form Main page for cache_example.
cache_example_menu Implements hook_menu().
cache_example_form_expire_files Submit handler that explicitly clears cache_example_files_count from cache.
cache_example_form_create_expiring_item Submit handler to create a new cache item with specified expiration.
cache_example_form_cache_clearing Submit handler to demonstrate the various methods for clearing cache.