pmc

pmcc

node memcached with promises ---

Showing:

Popularity

Downloads/wk

1

GitHub Stars

1

Maintenance

Last Commit

4yrs ago

Contributors

1

Package

Dependencies

1

Size (min+gzip)

10.6KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

pmcc

对现有node的memcache库进行promise化,更方便调用

install

npm install --save pmcc

//dev
npm run dev

usage

    import Pmccer from 'pmcc';
    //初始化memcache链接
    let pmccer = new Pmccer('127.0.0.1:11211');
    //获取memcache的promise化对象
    let pmcc = pmccer.init();
    //获取memcache原生对象
    //let pmcc = pmccer.primeval();
    
    let result = await pmcc.set(key, value, lifetime);
    let value = await pmcc.get(key);
    ...

更多API使用可以参考原memcache库

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100