Skip to content

A mruby client library for Redis Cluster based on matsumotory/mruby-redis

License

Notifications You must be signed in to change notification settings

yukirii/mruby-redis-cluster

Repository files navigation

mruby-redis-cluster Build Status

mruby-redis-cluster is a mruby client library for Redis Cluster based on matsumotory/mruby-redis.

INSTALLATION

Using mrbgems

Add conf.gem line to build_config.rb:

MRuby::Build.new do |conf|

  # ... (snip) ...

  conf.gem :github => 'yukirii/mruby-redis-cluster'
end

USAGE

Connecting to a Redis Cluster

startup_nodes = [
  { host: '127.0.0.1', port: 7000 },
  { host: '127.0.0.1', port: 7001 }
]
rc = RedisCluster.new(startup_nodes)

Commands

Redis#expire doc

client.expire key, 10

Redis#get doc

client.get "key"

Redis#set doc

client.set key, "200"

License

MIT

Authors

The RedisCluster client and RedisClusterCRC16 module in mruby-redis-cluster based on antirez/redis-rb-cluster.

About

A mruby client library for Redis Cluster based on matsumotory/mruby-redis

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages