0.0.1 • Published 12 months ago

@aaqilniz/loopback-rest-cache v0.0.1

Weekly downloads
-
License
-
Repository
-
Last release
12 months ago

@aaqilniz/loopback-rest-cache

LoopBack

Installation

Install LoopbackRestCacheComponent using npm;

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

Basic Use

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

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

12 months ago