首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > Java > 猫猫猫

猫猫猫

  • 资源大小:5.12 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签:

资 源 简 介

Super simple local in memory cache using java.util.concurrent package for high performance thread-safe design. It"s only 75 lines of code including comments and getters. View code Features Super simple using only a few constructs from java.util.concurrent package Supports maximum cache size Supports item expiration Getting Started Very easy: // Create a new cacheKittyCache cache = new KittyCache(5000); // 5000 is max number of objects// Put an object into the cachecache.put("mykey", value, 500); // 500 is time to live in seconds// Get an object from the cachevalue = cache.get("mykey"); Performance I"ve only tested again Ehcache, but here"s 3 separate runs, each with max cache size of 10,000 elements and all in memory. All values in ms.
VIP VIP
0.175860s