Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/michaelpalacce/er_memcached_data_server
Plugin for event_request that implements a memcached data server
https://github.com/michaelpalacce/er_memcached_data_server
Last synced: 22 days ago
JSON representation
Plugin for event_request that implements a memcached data server
- Host: GitHub
- URL: https://github.com/michaelpalacce/er_memcached_data_server
- Owner: Michaelpalacce
- License: gpl-3.0
- Created: 2020-03-27T10:48:51.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-05-27T07:47:07.000Z (over 3 years ago)
- Last Synced: 2024-12-06T16:05:21.967Z (about 1 month ago)
- Language: JavaScript
- Size: 102 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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() } ) );
~~~