0.1.0 • Published 7 months ago

@blastz/nest-async-cache-dedupe v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

Nest Async Cache Dedupe

Getting started

Install @blastz/nest-async-cache-dedupe

npm install @blastz/nest-async-cache-dedupe

Examples

Register cache module

import { AsyncCacheDedupeModule } from '@blastz/nest-async-cache-dedupe';

@Module({
  imports: [AsyncCacheDedupeModule.forRoot()],
})
export class AppModule {}

Use cache decorator

class SomeService {
  @AsyncCacheDedupe({
    ttl: 3,
  })
  async someMethod(...args: any[]) {
    // ...
  }
}

License

Licensed under MIT

0.1.0

7 months ago