er_memcached_data_server

1.1.7 • Public • Published

er_memcached_data_server

Build Status Codacy Badge codecov Maintenance Known Vulnerabilities GitHub top language npm bundle size npm npm GitHub issues GitHub last commit

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:

// 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() } ) );

Package Sidebar

Install

npm i er_memcached_data_server

Weekly Downloads

1

Version

1.1.7

License

GPL-3.0

Unpacked Size

84.8 kB

Total Files

11

Last publish

Collaborators

  • stefantigro