Air5
  • About
  • Installation
  • Providers
  • Usage Examples
    • Mongo
    • Redis
    • LevelDB
    • RocksDB
    • SQLite
    • NeDB
    • Enmap
    • PouchDB
    • AirDB
    • LowDB
    • YAML
    • JSON
    • TSON
    • JSON5
    • CSON
    • BSON
    • FLAT
    • CSV
    • Memory
  • Creating Providers
  • Complete Examples
Powered by GitBook
On this page

Was this helpful?

  1. Usage Examples

Redis

PreviousMongoNextLevelDB

Last updated 4 years ago

Was this helpful?

Installation

npm i air5@latest --save

npm i air5-redis@latest --save

Usage

Make Sure To Provide The Correct URI

const Air5 = require('air5')

const database = new Air5('example-name', {
    provider: 'redis',
    uri: 'redis://'
})

There Is A Free Public Server At

redis://user:KBNZKvuWOgA4SXSJZ5w7hNicGJwlBRnb@redis-13932.c1.us-west-2-2.ec2.cloud.redislabs.com:13932