rediss

Simple Redis toolkit

Usage no npm install needed!

<script type="module">
  import rediss from 'https://cdn.skypack.dev/rediss';
</script>

README

User Friendly Redis Toolkit

NPM version Downloads Build Status

Use Redis' commands straight-forward, with no need to remember the complicated Redis API in mind.

Motivation

let redisList = new RedisList('mykey');

let index = await redisList.push('str1');
let data = await redisList.pop();

console.log(index); // Will print 0
console.log(data); // Will print 'str1' 

Contribute

Since wrap all Redis commands can take long time, you're welcome to contribute ;)

Support

Tested on Redis 2.8.2400

Install

npm i rediss -S

Docs

Data types

Note: objects can save mixed JavaScript data, it's means that when saving a value will fetch exactly as saved - with the same type, objects will internally JSON.stringify before save and JSON.parse after fetch

Errors

RedisError

A readonly error that contain the reason something has failed