registerPlugins(plugins)
Registers plugins and returns new instance of self (cacheInstance) extended with functionalities provided by plugins.
Arguments
Returns
Throws
Example
// assuming that you already have cache instance and some plugins prepared
// plugin adds additional method `foo`
const cacheWithPlugins = cache.registerPlugins([ plugin ]);
cacheWithPlugins === cache; // false
typeof cacheWithPlugins.foo; // function
typeof cache.foo; // undefinedLast updated