Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

RPUSH redis

const redis = require('redis');

const client = redis.createClient();

client.on('error', (err) => console.log('Redis Client Error', err));
client.on('connect', () => console.log('Redis Client Connected'));

client.connect();


client.RPUSH('mylist', 'hello').then((res) => {
  console.log(res);
  client.quit();
});
Source by itsvinayak.hashnode.dev #
 
PREVIOUS NEXT
Tagged: #RPUSH #redis
ADD COMMENT
Topic
Name
6+4 =