Skip to content

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

usage

class A {
  @cacheReturn({ cacheTTL: 2 * 24 * 60 * 60 * 1000 }) // 2 days
  test(x) {
    return new Promise((res) => setTimeout(() => res(x), 1000))
  }
}

const a = new A();
a.test(2); // Output 2 from function
a.test(2); // Output 2 from cache
a.test(2); // Output 2 from cache

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages