# er_memcached_data_server

> Plugin for event_request that implements a memcached data server

Latest version **1.1.7** (published 2020-07-29) · GPL-3.0 license · 0 weekly downloads

## Install

```sh
npm install er_memcached_data_server
pnpm add er_memcached_data_server
yarn add er_memcached_data_server
bun add er_memcached_data_server
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.7 |
| Published | 2020-07-29 |
| First published | 2020-04-08 |
| Weekly downloads | 0 |
| License | GPL-3.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 82.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Stefan Genov |
| Maintainers | stefantigro |
| Keywords | memcached, event-request, data-store, data-server |

## Links

- npm: https://www.npmjs.com/package/er_memcached_data_server
- Repository: https://github.com/Michaelpalacce/er_memcached_data_server
- Homepage: https://github.com/Michaelpalacce/er_memcached_data_server#readme
- Issues: https://github.com/Michaelpalacce/er_memcached_data_server/issues
- npm.io page: https://npm.io/package/er_memcached_data_server

## Dependencies (2)

- [memcached](https://npm.io/package/memcached.md) ^2.2.2
- [event_request](https://npm.io/package/event_request.md) ^26.1.1

## Alternatives

- [memory-cache](https://npm.io/package/memory-cache.md) — 795.0K weekly downloads
- [@httptoolkit/proxy-agent](https://npm.io/package/@httptoolkit/proxy-agent.md) — 11.2K weekly downloads
- [express-cache-controller](https://npm.io/package/express-cache-controller.md) — 5.3K weekly downloads
- [http-cache-middleware](https://npm.io/package/http-cache-middleware.md) — 4.5K weekly downloads
- [cache2](https://npm.io/package/cache2.md) — 1.5K weekly downloads

## Recent versions

- 1.1.7 (latest) — 2020-07-29
- 1.1.6 — 2020-07-28
- 1.1.5 — 2020-07-28
- 1.1.4 — 2020-07-28
- 1.1.3 — 2020-07-28
- 1.1.2 — 2020-07-28
- 1.1.1 — 2020-04-09
- 1.1.0 — 2020-04-09
- 1.0.1 — 2020-04-08
- 1.0.0 — 2020-04-08

## README

# er_memcached_data_server

[![Build Status](https://travis-ci.com/Michaelpalacce/er_memcached_data_server.svg?branch=master)](https://travis-ci.com/Michaelpalacce/er_memcached_data_server) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/3582b90b7f824a73b44f67e3594a36a0)](https://app.codacy.com/manual/Michaelpalacce/er_memcached_data_server?utm_source=github.com&utm_medium=referral&utm_content=Michaelpalacce/er_memcached_data_server&utm_campaign=Badge_Grade_Dashboard) [![codecov](https://codecov.io/gh/Michaelpalacce/er_memcached_data_server/branch/master/graph/badge.svg)](https://codecov.io/gh/Michaelpalacce/er_memcached_data_server) ![Maintenance](https://img.shields.io/maintenance/yes/2021) [![Known Vulnerabilities](https://snyk.io/test/github/Michaelpalacce/er_memcached_data_server/badge.svg?targetFile=package.json)](https://snyk.io/test/github/Michaelpalacce/er_memcached_data_server?targetFile=package.json) ![GitHub top language](https://img.shields.io/github/languages/top/MichaelPalacce/er_memcached_data_server) ![npm bundle size](https://img.shields.io/bundlephobia/min/er_memcached_data_server) ![npm](https://img.shields.io/npm/dw/er_memcached_data_server) ![npm](https://img.shields.io/npm/dt/er_memcached_data_server) ![GitHub issues](https://img.shields.io/github/issues/MichaelPalacce/er_memcached_data_server) ![GitHub last commit](https://img.shields.io/github/last-commit/MichaelPalacce/er_memcached_data_server)

Plugin for event_request that implements a memcached data server

# Notes:
- Memcached DOES NOT support negative numbers when decrementing and OR incrementing
- Memcached MAX TTL is 2592000 or 30 days, that will be enforced if a bigger number is given
- Memcached returns numbers as numbers and not strings if given as numbers

# Use:
~~~javascript
// Get the data server only
const MemcachedDataServer = require( 'er_memcached_data_server' );
const DataServerPlugin = require( 'event_request/server/plugins/available_plugins/data_server_plugin' );
const app = require( 'event_request' )();

// Attach the cache server
app.apply( new DataServerPlugin( 'er_data_server', { dataServer: new MemcachedDataServer() } ) );
~~~

---
_Source: https://npm.io/package/er_memcached_data_server · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
