Skip to content

aaqilniz/loopback-rest-cache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

faa6d90 · Dec 4, 2023

History

3 Commits
Jun 3, 2023
Dec 4, 2023
Jun 3, 2023
Jun 3, 2023
Jun 3, 2023
Jun 3, 2023
Jun 3, 2023
Jun 3, 2023
Jun 3, 2023
Jun 3, 2023
Jun 3, 2023
Dec 4, 2023
Dec 4, 2023
Jun 3, 2023

Repository files navigation

loopback-rest-cache

LoopBack

Installation

Install LoopbackRestCacheComponent using npm;

$ [npm install | yarn add] loopback-rest-cache

Basic Use

Configure and load LoopbackRestCacheComponent in the application constructor as shown below.

import {LoopbackRestCacheComponent, LoopbackRestCacheComponentOptions, DEFAULT_LOOPBACK_REST_CACHE_OPTIONS} from 'loopback-rest-cache';
// ...
export class MyApplication extends BootMixin(ServiceMixin(RepositoryMixin(RestApplication))) {
  constructor(options: ApplicationConfig = {}) {
    const opts: LoopbackRestCacheComponentOptions = DEFAULT_LOOPBACK_REST_CACHE_OPTIONS;
    this.configure(LoopbackRestCacheComponentBindings.COMPONENT).to(opts);
      // Put the configuration options here
    });
    this.component(LoopbackRestCacheComponent);
    // ...
  }
  // ...
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published