Skip to content

a9b3/promiredis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Promiredis

Build Status

Promise wrapped node redis client.

Installation

npm i --save promiredis

Usage

import promiredis from 'promiredis'

async function main() {
	promiredis.initialize({ port: 6379, host: 'localhost', namespace: 'FOO' })
	
	// will write into key 'FOO/foo'
	await promiredis.set('foo', { name: 'foo' })
	
	// will get from key 'FOO/foo'
	const res = await promiredis.get('foo')
}

try {
	main()
} catch (e) { ... }

About

Promise wrapped node redis client

Resources

Stars

Watchers

Forks

Packages

No packages published