0.0.5 • Published 6 years ago

any-cache v0.0.5

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

AnyCache

CI Coverage Version License

Function level cache library.

Install

npm i any-cache --save

Example

a simple example

  class TestCls {
    @helper.cache('text')
    async text(t: string) { return t; }

    @helper.cacheEvict('text')
    async evictText(t: string) { return t; }

    @helper.cache((desc: string) => `desc_${desc}`)
    async desc(desc: string, sub: string = '') { return desc + sub; }

    @helper.cacheEvict((desc: string) => `desc_${desc}`)
    async evictDesc(desc: string) { }
  }

See the test case for details.

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago