OurCal::Provider::Cache - a caching provider
[a_cache] type = cache dir = .cache child = a_provider
The directory to cache into. Defaults to '.cache'
An optional child to cache stuff from. This will instantiate the provider and feed stuff through to it, caching appropriately.
How long to cache for in seconds. Defaults to 1800 (30 mins).
Requires an OurCal::Config object as config param and a name param.
OurCal::Config
Retrieve the cache file and returns a list of objects serialised in it.
If the cache has expired then runs the subroutine passed to fetch more data.
Returns all the todos on the system.
Returns whether there are events given the params.
Returns all the events for the given params.
Returns the name of all the users on the system.
Save a todo.
Delete a todo.
Save an event.
Delete an event..
To install OurCal, copy and paste the appropriate command in to your terminal.
cpanm
cpanm OurCal
CPAN shell
perl -MCPAN -e shell install OurCal
For more information on module installation, please visit the detailed CPAN module installation guide.