polycache-memcached-store
v1.1.0
Published
Memcached module for polycache
Downloads
3
Maintainers
Readme
polycache memcached store
Memcached store for polycache
A cache module for node that allows easy wrapping of functions, tiered caches, and a consistent interface.
Features
- Made with Typescript and compatible with ESModules.
- 100% test coverage via vitest.
- Support any library with the same interface.
Installation
npm install polycache-memcached-store memcache-plus
This library has been tested with memcache-plus, but you can replace with any library with the same interface.
Usage Examples
import Memcache from 'memcache-plus';
import { caching } from 'polycache-core';
import { createMemcachedStore } from 'polycache-memcached-store';
const cache = caching(
createMemcachedStore({
driver: Memcache,
options: {
// Check all the options here: https://memcache-plus.com/initialization.html - see options
hosts: ['127.0.0.1:11211'],
},
}),
);
Contribute
If you would like to contribute to the project, please fork it and send us a pull request. Please add tests for any new features or bug fixes.
License
polycache-memcached-store is licensed under the MIT license.