Tcl Library Source Code

Documentation
Login


[ Main Table Of Contents | Table Of Contents | Keyword Index | Categories | Modules | Applications ]

NAME

cache::async - Asynchronous in-memory cache

Table Of Contents

SYNOPSIS

package require Tcl 8.5 9
package require cache::async ?0.3.2?

::cache::async objectName commandprefix ?options...?
objectName get key donecmdprefix
objectName set key value
objectName unset key
objectName exists key
objectName clear ?key?

DESCRIPTION

This package provides objects which cache data in memory, and operate asynchronously with regard to request and responses. The objects are agnostic with regard to cache keys and values, and unknown methods are delegated to the provider of cached data. These two properties make it easy to use caches as a facade for any data provider.

API

The package exports a class, cache::async, as specified below.

The object commands created by the class commands above have the form:

Bugs, Ideas, Feedback

This document, and the package it describes, will undoubtedly contain bugs and other problems. Please report such in the category cache of the Tcllib Trackers. Please also report any ideas for enhancements you may have for either package and/or documentation.

When proposing code changes, please provide unified diffs, i.e the output of diff -u.

Note further that attachments are strongly preferred over inlined patches. Attachments can be made by going to the Edit form of the ticket immediately after its creation, and then using the left-most button in the secondary navigation bar.

KEYWORDS

asynchronous, cache, callback, synchronous

COPYRIGHT

Copyright © 2008 Andreas Kupries