{"id":15572592,"url":"https://github.com/mikemajesty/nestjs-node-cache","last_synced_at":"2025-04-12T00:51:20.258Z","repository":{"id":57687688,"uuid":"472545987","full_name":"mikemajesty/nestjs-node-cache","owner":"mikemajesty","description":"Nestjs node cache module","archived":false,"fork":false,"pushed_at":"2022-03-24T00:55:43.000Z","size":70,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-01T04:01:42.476Z","etag":null,"topics":["nest","nestjs","nestjs-cache","node-cache","node-cache-nestjs"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/nestjs-node-cache","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mikemajesty.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-03-21T23:25:53.000Z","updated_at":"2022-03-25T18:37:35.000Z","dependencies_parsed_at":"2022-08-25T20:21:49.620Z","dependency_job_id":null,"html_url":"https://github.com/mikemajesty/nestjs-node-cache","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikemajesty%2Fnestjs-node-cache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikemajesty%2Fnestjs-node-cache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikemajesty%2Fnestjs-node-cache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikemajesty%2Fnestjs-node-cache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mikemajesty","download_url":"https://codeload.github.com/mikemajesty/nestjs-node-cache/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248492876,"owners_count":21113163,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["nest","nestjs","nestjs-cache","node-cache","node-cache-nestjs"],"created_at":"2024-10-02T18:03:17.227Z","updated_at":"2025-04-12T00:51:20.239Z","avatar_url":"https://github.com/mikemajesty.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nestjs Node Cache\n\n```bash\n$ npm i nestjs-node-cache\n```\n\n## Usage\n\n---\n```ts\n    import { CacheModule } from 'nestjs-node-cache';\n\n    @Module({\n      imports: [CacheModule],\n      providers: [],\n      exports: [],\n    })\n    export class YourModule {}\n```\n\n```ts\n  import { ICacheService } from 'nestjs-node-cache'\n  \n  @Injectable()\n  export class YourService {\n    constructor(private readonly cacheService: ICacheService) {}\n\n      async method(): string {\n        this.cacheService.set('KEY', 'textCached');\n\n        return this.cacheService.get('KEY')\n      }\n  }\n```\n\n# operators\n\n```ts\n  nodeCache: NodeCache\n  connect(config?: NodeCache.Options): CacheService\n  set(key: string | number, model: unknown): boolean\n  mSet(model: CacheType[]): boolean\n  mGet(key: string[]): unknown | null\n  has(key: string | number): boolean\n  del(key: string | number): boolean\n  get(key: string | number): unknown\n  setExpiration(key: string | number, ttl: number): boolean\n  setOptions(options: NodeCache.Options): void\n```\n\n---\n\nThe following is a list of all the people that have contributed to nestjs-node-cache. Thanks for your contributions!\n\n[\u003cimg alt=\"mikemajesty\" src=\"https://avatars1.githubusercontent.com/u/11630212?s=460\u0026v=4\u0026s=117\" width=\"117\"\u003e](https://github.com/mikemajesty)\n\n## License\n\nIt is available under the MIT license.\n[License](https://opensource.org/licenses/mit-license.php)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikemajesty%2Fnestjs-node-cache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmikemajesty%2Fnestjs-node-cache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikemajesty%2Fnestjs-node-cache/lists"}