polycache-memcached-store
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

polycache memcached store

codecov tests license npm npm

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.

Package Sidebar

Install

npm i polycache-memcached-store

Weekly Downloads

0

Version

1.1.0

License

MIT

Unpacked Size

44.5 kB

Total Files

13

Last publish

Collaborators

  • corradodellorusso