| OurCal documentation | view source | Contained in the OurCal distribution. |
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.
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..
| OurCal documentation | view source | Contained in the OurCal distribution. |