These forums have been archived and are now read-only.

The new forums are live and can be found at https://forums.eveonline.com/

EVE Technology Lab

 
  • Topic is locked indefinitely.
 

API cache software

Author
Rickard Pickman
Deep Core Mining Inc.
Caldari State
#1 - 2011-10-08 10:49:11 UTC
Hi,

I'm wondering if there's any API cache software available that will store an API request either in a file or a database for a program such as EvEMon to use. Eve Kill offer this kind of thing but I would like to run my own.

I'm aware of Ale and Yapeal but I would like to know if there's a simple script that will perform this function "out of the box".

Thanks.
Callean Drevus
Perkone
Caldari State
#2 - 2011-10-08 18:26:28 UTC
Define 'out of the box'.

ALE and Yapeal do this out of the box in my opinion. Yapeal more so than ALE since it stores all data in separate tables. What exactly are your needs?

Developer/Creator of EVE Marketeer

Rickard Pickman
Deep Core Mining Inc.
Caldari State
#3 - 2011-10-08 21:17:59 UTC
By that I mean a script that I can upload to my server, setup the database etc and then pass calls to the API through. From what I can see the two libs I mention store the data in various ways but they would take some coding to retrieve the data from the database.

All I want is something that will store the xml for later retrieval, obeying cache timers so it refreshes the data when it expires.
Callean Drevus
Perkone
Caldari State
#4 - 2011-10-08 23:05:01 UTC
Ah, yes, I see what you mean. I know of no such script. It should be fairly easy (but annoying) to create though.

Developer/Creator of EVE Marketeer

Lumy
Sebiestor Tribe
Minmatar Republic
#5 - 2011-10-08 23:11:55 UTC
You mean that you need something like api proxy/cache service?
Rickard Pickman
Deep Core Mining Inc.
Caldari State
#6 - 2011-10-09 01:50:20 UTC
Yes but with the minimal amount of coding to get/recieve the data from the API xml
Morgenholt Blue
Swift Redemption.
#7 - 2011-10-09 06:53:30 UTC  |  Edited by: Morgenholt Blue
Pheal has a pretty simple caching system but if your app is already developed it would probably require a decent amount of work to switch over to it.

It's only for PHP also so probably not what you are looking for.
Vinaeus Stromjor
#8 - 2011-10-11 03:02:23 UTC
Eve API Proxy does this - it's designed for Google App Engine, but should be easy to adapt. Also, I can't get to the website right now so I don't know if it's been updated with the latest calls.

http://code.google.com/p/eveapiproxy/
Rickard Pickman
Deep Core Mining Inc.
Caldari State
#9 - 2011-10-11 16:24:16 UTC
Yes I found that one but a lack of documentation, lack of local storage and apparently no development means I ruled it out.

PHP software would be fine.
Manentia
manic-recession
#10 - 2011-10-14 00:07:55 UTC
Have you looked at this?

http://www.eveorg.net/apidb/
Rickard Pickman
Deep Core Mining Inc.
Caldari State
#11 - 2011-10-14 16:08:35 UTC
Yes I've seen it. Would be perfect if it was for Linux ...
Karbowiak
Sacred Templars
Fraternity.
#12 - 2011-10-14 19:20:45 UTC
Rickard Pickman
Deep Core Mining Inc.
Caldari State
#13 - 2011-10-14 20:05:41 UTC
I want the data stored on my server not elsewhere. But thanks.
Karbowiak
Sacred Templars
Fraternity.
#14 - 2011-10-15 11:35:26 UTC
Then make it, its not that hard.

All you need to do is make your httpd (say lighttpd) send everything to index.php?req=/stuff/to/request
You capture req, and pass that to the ccp api.
Get the result back, store it in memcached or file cache, and hash the request
Next time the same request comes in, check if there is a file in the filecache, check its age, if its below the cachedUntil value it got back then, return the cached file, if its not, delete it and request from CCP again.

Takes 10 minutes to make in php :)
Trenker
#15 - 2011-10-15 19:16:05 UTC
I could still offer mine (uses a file cache)
https://github.com/Trenker/eveapiproxy

If you don't know git (which you should ;) ) check out the big "ZIP" button

how it works:
http://apiproxy.evepanel.net/help.txt