03 Sep 2008 12:26:13 UTC
- Distribution: WebService-EveOnline
- Module version: 0.61
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (4)
- Testers (294 / 183 / 0)
- KwaliteeBus factor: 0
- 22.86% Coverage
- License: unknown
- Activity24 month
- Download (20.28KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionCHRISC Chris Carline
WebService::EveOnline::Cache -- provide a cache for use by WebService::EveOnline
Currently, for use by WebService::EveOnline only. It makes all kinds of hideous assumptions, and probably only works for SQLite databases. You can override the defaults when you instantiate the WebService::EveOnline module. It is recommended that you study the source code (dear no, it burns!) if you feel inclined to do this.
It is mainly used to store the Eve Online skills tree, and cache any calls to the Eve Online API so we don't keep clobbering the network every time we want to find something out.
Instantiates the WebService::EveOnline cache. Assuming the type is SQLite (the default) it attempts to open the db file if it exists.
Returns the age of the database cache in epoch seconds.
Attempts to delete the sqlite database file and rebuild it. It should be called with the data structure returned from the all_eve_skills method, i.e. the raw datastructure that XML::Simple spits out. It really does nothing clever at all, and all of this code will need to be significantly refactored at a later date.
Returns skill data based on a typeID.
Retrieves a previously-run command from the cache. It checks the age of the cache. It will return no data if the cache has expired, or if the command has not been run before.
Stores the result of a command in the database cache. Returns whatever datastructure is passed to it. The data is stored in Storable format.
Module Install Instructions
To install WebService::EveOnline, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install WebService::EveOnline
For more information on module installation, please visit the detailed CPAN module installation guide.