## PureCache pure-cache: Cache with confidence 🎉 Ultra fast in-memory JavaScript cache with near realtime cache expiry feature ⚡ cacheStore Structure: { key1: { value: value1, addedAt: 1527012874728, expiryAt: 1527012879729 }, key2: { value: value2, addedAt: 1527012908893, expiryAt: 1527012909880 }, ... } **Kind**: global class * [PureCache](#PureCache) * [.put(key, value, expiryIn)](#PureCache+put) ⇒ Object * [.get(key)](#PureCache+get) ⇒ Object \| null * [.remove(key)](#PureCache+remove) ⇒ Boolean * [.dispose()](#PureCache+dispose) ⇒ Boolean ### pureCache.put(key, value, expiryIn) ⇒ Object Put data into the cache **Kind**: instance method of [PureCache](#PureCache) **Returns**: Object - Newly added Object({ value, addedAt, expiryAt }) with `value` key consists of actual data | Param | Type | Description | | --- | --- | --- | | key | String | Cache key | | value | String \| Object \| \* | Value to be stored against cache key | | expiryIn | Number | Expiry time(in ms from now), defaults to `60000ms(60s)`, if set to falsy values(like `0` & `false`), cache will act as simple in-memory data store and data is never expired for the key | ### pureCache.get(key) ⇒ Object \| null Get data from the cache **Kind**: instance method of [PureCache](#PureCache) **Returns**: Object \| null - If `key` found, returns Object({ value, addedAt, expiryAt }) with `value` key consists of actual data, else returns `null` | Param | Type | Description | | --- | --- | --- | | key | String | Cache key | ### pureCache.remove(key) ⇒ Boolean Remove data from the cache **Kind**: instance method of [PureCache](#PureCache) **Returns**: Boolean - If `key` found, returns `true`,else returns `false` | Param | Type | Description | | --- | --- | --- | | key | String | Cache key to be removed from the cache | ### pureCache.dispose() ⇒ Boolean Cleanup - Clear entire cache & stop expirer **Kind**: instance method of [PureCache](#PureCache) **Returns**: Boolean - Returns `true`