0.2.2 • Published 6 years ago

mup-redis-lru v0.2.2

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

mup-redis

Plugin for Meteor Up to setup and run Redis. Redis is run as LRU cache with --maxmemory 256mb --maxmemory-policy allkeys-lru.

Use

Install with npm i --save mup-redis-lru. Then, add to the plugins array in your mup config, and add a redis object.

module.exports = {
  // rest of config

  plugins: ['mup-redis-lru'],
  redis: {
    // Server to run redis on.
    servers: { one: {} },
    // Version of redis. Add '-alpine' to use a much smaller docker image
    version: '4.0.10-alpine'
  }
}

Next, run

mup setup
mup reconfig

Redis adds the environment variable REDIS_URL to the app. You cannot access redis from outside the server.

Commands

  • mup redis setup
  • mup redis start
  • mup redis stop
  • mup redis logs View redis logs. Supports the same arguments as mup logs, including --tail and --follow.
0.2.2

6 years ago

0.2.1

6 years ago