Class lugate.cache.redis

The lugate module.

Lugate is a lua module for building JSON-RPC 2.0 Gateway APIs just inside of your Nginx configuration file. Lugate is meant to be used with [ngx\_http\_lua\_module](https://github.com/openresty/lua-nginx-module) together.

Info:

  • License: MIT
  • Author: Ivan Zinovyev

Functions

Redis:new (...) Create new redis instance (wrapper for redis-lua class)
Redis:set (key, value, ttl) Set value to cache
Redis:sadd (set, key) Add value to the set
Redis:get (key) Get value from cache


Functions

Methods
Redis:new (...)
Create new redis instance (wrapper for redis-lua class)

Parameters:

  • ...

Returns:

    table Return cache instance
Redis:set (key, value, ttl)
Set value to cache

Parameters:

Redis:sadd (set, key)
Add value to the set

Parameters:

Redis:get (key)
Get value from cache

Parameters:

Returns:

    string
generated by LDoc 1.4.3 Last updated 2016-10-06 21:41:21