NAME

IO::Iron::IronCache::Cache - IronCache (Online Item-Value Storage) Client (Cache).

VERSION

version 0.14

SYNOPSIS

Please see IO::Iron::IronCache::Client for usage.

REQUIREMENTS

SUBROUTINES/METHODS

new

Creator function.

Getters/setters

Set or get a property. When setting, returns the reference to the object.

name Cache name.

clear

Deletes all items in an IronCache cache.

Params: [NONE]
Return: 1 == success.
Exception: IronHTTPCallException if fails. (IronHTTPCallException: status_code=<HTTP status code> response_message=<response_message>)

put

Params: key, IO::Iron::IronCache::Item object.
Return: 1 == success.
Exception: IronHTTPCallException if fails. (IronHTTPCallException: status_code=<HTTP status code> response_message=<response_message>)

increment

Params: key, increment (integer number, can be negative).
Return: the new value.
Exception: IronHTTPCallException if fails. (IronHTTPCallException: status_code=<HTTP status code> response_message=<response_message>)

get

Params: key.
Return: IO::Iron::IronCache::Item object.
Exception: IronHTTPCallException if fails. (IronHTTPCallException: status_code=<HTTP status code> response_message=<response_message>)

delete

Params: key.
Return: 1 if successful.
Exception: IronHTTPCallException if fails. (IronHTTPCallException: status_code=<HTTP status code> response_message=<response_message>)

AUTHOR

Mikko Koivunalho <mikko.koivunalho@iki.fi>

BUGS

Please report any bugs or feature requests to bug-io-iron@rt.cpan.org or through the web interface at: http://rt.cpan.org/Public/Dist/Display.html?Name=IO-Iron

COPYRIGHT AND LICENSE

This software is copyright (c) 2023 by Mikko Koivunalho.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

The full text of the license can be found in the LICENSE file included with this distribution.