dragonnodejs-redis

Bundle with services to develop applications with Redis - Initialize client service with the Redis connection - Opportunity to set and get values with JSON encoding - Initialize cache service to abstract the caching logic with Redis - Let the keys being arrays and returns the first found value

Usage no npm install needed!

<script type="module">
  import dragonnodejsRedis from 'https://cdn.skypack.dev/dragonnodejs-redis';
</script>

README

DragonNode.js Redis

Bundle with services to develop applications with Redis

  • Initialize client service with the Redis connection
  • Opportunity to set and get values with JSON encoding
  • Initialize cache service to abstract the caching logic with Redis
  • Let the keys being arrays and returns the first found value

Installation

  • Run npm install dragonnodejs-redis --save
  • Add the bundle to the "app.js":
let modules = [
    [require('dragonnodejs-redis'), [
        ['client', { createClient: [process.env.REDISCLOUD_URL] }],
        ['json'],
        ['cache', { disabled: process.env.CACHE_DISABLED }],
        ['recursive']
    ]]
];