|
GettingStarted
How to get up and running with BigCache
Featured Dependencies
DetailsCreate the Cache// it would be wise to do this only once and reuse it BigCache bigcache = new S3Cache(AWS_ACCESS_KEY, AWS_SECRET_KEY, "my-caching-bucket-name"); Put an object into the cache// the 3600 is how long the object will live for, this one will expire after 1 hour
bigcache.put("somekey", myObject, 3600);Get an object from the cacheObject o = bigcache.get("somekey");
|
► Sign in to add a comment
Your memcached benchmarks are someone handicapped by the fact that you're not using getMulti.... get() is about 1-2ms per 100 but if you rewrite your code to call getMulti() once on all 100keys it will take about 1ms or .01ms per key.
Kevin (spinn3r.com)
Kevin: Using the async methods on BigCache? improves the performance of this quite a bit. I'll have to do some new benchmarks with your suggestion as well as with the these http://code.google.com/p/bigcache/wiki/AsyncMethods