createCache(adapter)
Creates a cache instance.
Arguments
adapter
(Adapter): Adapter's instance, any compatible with stash-it. See list of available adapters.
Throws
If
adapter
is not an object, it will throw an error'adapter' must be an object.
If
adapter
does not contain all required methods, it will throw an errorNot all required methods are present in adapter.
If not all of the methods are functions, it will throw an error
Not all required methods are functions.
Returns
(cacheInstance): Created cache instance.
Example
Last updated