Simple function used to clean cache value for value. Function should return true, if value should removed from cache. Example implementation:
private static cleanCache(): SimpleCacheCleaner<Mytype> { return (value: Mytype) => { return new Date().getTime() - value.age > 10000; }; }
SimpleCacheCleaner
T
Simple function used to clean cache value for value. Function should return true, if value should removed from cache.
Example implementation:
private static cleanCache(): SimpleCacheCleaner<Mytype> { return (value: Mytype) => { return new Date().getTime() - value.age > 10000; }; }SimpleCacheCleaner
T