0.1.12 • Published 2 years ago

@voilab/vmol-acc-spcache v0.1.12

Weekly downloads
94
License
ISC
Repository
bitbucket
Last release
2 years ago

vmol-acc-spcache

Moleculer mixin adding Salepoint cache access to the local service.

Configuration

Settings can be provided by the service or using enviroment variables.

    settings: {
        s3: {
            spcacheFields: ['id', 'slug', 'name'],
            spcacheOptions: {
                services: false
            }
        }
    }

Usage

To enable, add the middleware to your services.

const AccSalepointCacheService = require('vmol-acc-spcache');

module.exports = {
    name: 'myservice',

    /**
     * Mixins
     */
    mixins: [ AccSalepointCacheService ],
};

API

spcacheGet(ctx, salepointId, fieldToFetch)

spcacheConfig(ctx, salepointId, fieldToFetch)

0.1.12

2 years ago

0.1.11

3 years ago

0.1.10

4 years ago

0.1.8

4 years ago

0.1.9

4 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago