NAME

EntityModel::Cache - base class for EntityModel caching support

VERSION

version 0.102

SYNOPSIS

See EntityModel.

DESCRIPTION

See EntityModel.

METHODS

new

Instantiate class. Currently takes no parameters.

get

Get value from the cache corresponding to the given key.

remove

Remove the given key from the cache.

incr

Atomically increment the value for the given key.

incr

Atomically decrement the value for the given key.

set

Set the value for the given key. Optionally provide a timeout value as 3rd parameter.

atomic

Atomic set. Locks until the coderef is complete and returns the value.

SEE ALSO

  • CHI - Unified cache handling interface

INHERITED METHODS

EntityModel::BaseClass

clone, dump, sap

AUTHOR

Tom Molesworth <cpan@entitymodel.com>

LICENSE

Copyright Tom Molesworth 2008-2011. Licensed under the same terms as Perl itself.