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-exampleto.envand 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