-
#29 by @Delagen - TypeScript definitions have been rewritten, and the
CacheFactory
constructor function is now a named export of the module.Before:
import CacheFactory from 'cachefactory';
After:
import { CacheFactory } from 'cachefactory';
- #20 - The
CacheFactory
function is now a contructor function that produces instances ofCacheFactory
when invoked withnew
CacheFactory#createCache
is now the only way to create a cacheCacheFactory#get
now throws an error if the specified cache does not exist- You can use `CacheFactory#exists to check if a cache exists
- Switched from
Cache#disabled
toCache#enabled
- Upgraded some dependencies
- Added
CacheFactory#exists
- #9 - Added JSDoc comments and API Reference Documentation
- Added
jsnext:main
- Switched to Rollup.js
- Improve import of
yabh
- Added TypeScript definition file (thanks @SamuelMarks)
- Upgraded devDependencies
- Add a
values()
method to cache instances
- Fixed "expires" sometimes getting set to null
- Fixed cache not re-initializing properly from localStorage
- #3 - Initialization resets access timestamps
- #1 - Really fixed this time
- #2 - Specify MaxAge on put
- #1 - After reinitializing a cache from localStorage, info().size returns 0
Upgraded dependencies
Fix for promises
Initial release