Skip to content

Jonathan-mura/norikra-udf-redis

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Norikra::Udf::Redis

Norikra UDF to execute operations on Redis.

Installation

Add this line to your application's Gemfile:

gem 'norikra-udf-redis'

And then execute:

$ bundle

Or install it yourself as:

$ gem install norikra-udf-redis

Usage

The following functions are provided.

Function Result
incr(key) Increments the number stored at key by one. Returns incremented value.
incrby(key, value) Increments the number stored at key by the specified value. Returns incremented value.
rset(key, value) Set key to hold the string value. Returns "OK" if properly set.
rget(key) Get the value of key. Returns the value
rdel(key) Removes the specified key. Returns the number of removed keys. (maybe 1)

Copyright

  • Copyright (c) 2015- OGIBAYASHI Hironori
  • License
    • GPL v2

About

Norikra UDF to use Redis

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%