jmdobry / angular-cache

angular-cache is a very useful replacement for the Angular 1 $cacheFactory.
http://jmdobry.github.io/angular-cache
MIT License
1.39k stars 156 forks source link

How to extend cache instance's functionalities? #176

Closed jenux closed 9 years ago

jenux commented 9 years ago

When create a cache I want add a customized method for it, like

var profileCache = CacheFactory('profileCache')
profileCache.generateKey = function(profileName, profileAge) { return ...; }

Any way for me to add generateKey() to profileCache? Thanks

jmdobry commented 9 years ago

I don't know of anything preventing you from doing exactly as you described in your example.

jmdobry commented 9 years ago

Closing because I’m not sure this is an issue, if you are convinced that this is really a bug, please feel free to re-open the issue and add more information:

Otherwise support is done via the mailing list.