1.1.8 • Published 7 years ago

block-persist v1.1.8

Weekly downloads
-
License
ISC
Repository
gitlab
Last release
7 years ago

block-persist

'use strict';

const Persist = require('block-persist');

const mc = Persist.memcached({
    prefix: 'test',
    hosts: ['memcached.int.eu.aigent.com:30389']
});

mc.set('key', 'some value', 5).then(data => {
    console.log('data stored');
}).catch(err => {
    console.error(err);
});

setInterval(() => {
    mc.get('key')
        .then(value => {
            console.debug('then:',value);
        })
        .catch(err => {
            console.error('catch:',err);
        });
}, 1000);

Dev:

Transpile TypeScript into Javascript:

npm install
npm run-script build
1.1.8

7 years ago

1.1.7

7 years ago

1.1.6

7 years ago

1.1.5

7 years ago

1.1.4

7 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago