@groupby/elements-cache-driver-plugin
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

GroupBy Elements Cache Plugin

This package contains the GroupBy Elements Cache Driver Plugin class.

Usage

To use the plugin, simply instantiate it and register it with Core:

const cacheDriverPlugin = new CacheDriverPlugin();
core.register(cacheDriverPlugin);

Events

This plugin listens for and dispatches a number of events. These events are defined in the @groupby/elements-events package.

Received

  • CACHE_REQUEST: When received, a request to the cache is made and a response is dispatched with the event name provided in the payload of CACHE_REQUEST. It is recommended to prefix the return event name with the value of CACHE_RESPONSE_PREFIX.

Dispatched

  • A cache response event: Dispatched when a CACHE_REQUEST is fulfilled. The event is dispatched under the name provided by the corresponding CACHE_REQUEST payload.

Readme

Keywords

none

Package Sidebar

Install

npm i @groupby/elements-cache-driver-plugin

Weekly Downloads

1

Version

0.2.0

License

MIT

Unpacked Size

20.4 kB

Total Files

25

Last publish

Collaborators

  • mykola_bova
  • adruzhkin-gbi
  • anton.shakhlovich
  • artem_konstantinov
  • andzinchenko
  • yberkut-gbi
  • romangbi
  • francoisvongue
  • gleb.bondarenko.gb
  • pavel-shakhlovich
  • jonapgar-groupby
  • kseniya.kondrashevich
  • owengbi
  • yanishgbi
  • jasonwelsh
  • groupby-ops
  • groupby-ci
  • groupbyops
  • daniel-moniz-gbi
  • johanntutorgbi
  • dmytro-kyiashko
  • roman.lis