Neolithic Psychedelic Mushrooms

    @maxdome/redis

    3.0.2 • Public • Published

    Usage

    const redis = require('@maxdome/redis')(process.env.REDIS_URL);
     
    await redis.setJSON('key', 'value', 1 * 60 * 60);
    const value = await redis.getJSON('key');

    If the expire is an object supporting asSeconds() (e.g. @maxdome/duration or moment.duration) it will be used.

    const duration = require('@maxdome/duration');
    const redis = require('@maxdome/redis')(process.env.REDIS_URL);
     
    await redis.setJSON('key', 'value', duration('1h'));
    const value = await redis.getJSON('key');

    Keywords

    none

    Install

    npm i @maxdome/redis

    DownloadsWeekly Downloads

    1

    Version

    3.0.2

    License

    none

    Unpacked Size

    2.68 kB

    Total Files

    4

    Last publish

    Collaborators

    • dragonnodejs
    • sharaal
    • fabsrc
    • markusz
    • mxdbv
    • csaba.lorincz
    • goexrock
    • dimified