Recache is a transparent cache layer for the Reve EVE API library for Ruby. It is not an API library and does not communicate with the API.
It is implemented as a Ruby on Rails plugin, and uses ActiveRecord to store cache data directly in a database to provide quick access to cached data.
Recache is implemented entirely transparently, so you use it just as you would Reve, and the data return format is entirely the same (as is the request and setup format).
# First, with Reve reve_api = Reve::API.new(userid, key, characterid) reve_api.personal_wallet_journal # => Array of journal entries reve_api.personal_wallet_journal # => Raises an exception and no data - this data can only be loaded once an hour. # And now with Recached recached_api = Recached::API.new(userid, key, characterid) recached_api.personal_wallet_journal # => Array of journal entries recached_api.personal_wallet_journal # => Array of journal entries with no error # Wait one hour and make some money movement in the mean time. Make a cup of tea. Earl Gray is delicious. recached_api.personal_wallet_journal # => Array of journal entries with the new data # Rejoice because you never have to wait for the API when testing things!
Recache can be obtained via git source control on GitHub.
It is maintained by Ix Forres.