typescript-closure-tools
Version:
Command-line tools to convert closure-style JSDoc annotations to typescript, and to convert typescript sources to closure externs files
25 lines (18 loc) • 479 B
text/typescript
/// <reference path="memory-cache.d.ts" />
import memoryCache = require('memory-cache');
var key: any;
var value: any;
var bool: boolean;
var num: number;
memoryCache.put(key, value);
memoryCache.put(key, value, num);
memoryCache.put(key, value, num, (key) => {
});
value = memoryCache.get(key);
memoryCache.del(key);
memoryCache.clear();
num = memoryCache.size();
num = memoryCache.memsize();
memoryCache.debug(bool);
num = memoryCache.hits();
num = memoryCache.misses();