12345678910111213 |
- /**
- * Created by Tony on 2017/3/20.
- */
- var test = require('tape');
- var cache = require('../../../public/cache/cacheUtil');
- test('test cache usage:', function(t) {
- cache.setCache("unit_Test_Grp","unit_TestKey","hello my cache!");
- var msg = cache.getCache("unit_Test_Grp","unit_TestKey");
- console.log(msg);
- t.equal(msg, "hello my cache!")
- t.end();
- })
|