@random-guys/memory
TypeScript icon, indicating that this package has built-in type declarations

0.2.1 • Public • Published

memory

Wrapper around redis.

How to install?

yarn install @random-guys/memory

How does it work?

const store = new RedisStore(redisUrl)

// save data for 10m
await redis.save('something', 'some that things...hehe..fool', 60 * 10);

// save an object
await redis.save('myobject', {
  tomatoes: 'tomaetoes',
  biscuit: 'bone'
})

// get a normal string
await redis.get('something')

// get an object
await redis.get('myobject', true)

// clean the table
await redis.delete('myobject')
await redis.delete('something')

Readme

Keywords

none

Package Sidebar

Install

npm i @random-guys/memory

Weekly Downloads

0

Version

0.2.1

License

MIT

Unpacked Size

167 kB

Total Files

16

Last publish

Collaborators

  • random-guys