$cacheFactory.Cache.put()

put(key, value);

Inserts a named entry into the Cache object to be retrieved later, and incrementing the size of the cache if the key was not already present in the cache. If behaving like an LRU cache, it will also remove stale entries from the set.

It will not insert undefined values into the cache.

Parameters

Param Type Details
key string

the key under which the cached data is stored.

value *

the value to store alongside the key. If it is undefined, the key will not be stored.

Returns

*

the value stored.

doc_AngularJS
2016-03-29 16:10:09
Comments
Leave a Comment

Please login to continue.