You can find here some examples of Node.js code to send data to a Memcached server.
These examples are designed to run with a Stackhero Memcached service. You'll more informations about Stackhero here:
- First, clone this repository:
git clone https://github.com/stackhero-io/memcachedGettingStarted.git && cd memcachedGettingStarted
- Then, install nodes packages:
npm install
- Copy the file
.env-example
to.env
and fill it with your credentials - Finally, start the first example:
node gettingStarted.js
This example use the MemJS
library.
You will find documentation on the official Github repository