Class lugate.cache.cache

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

Cache:new (...) Create new cache instance
Cache:set (key, value, ttl) Set value to cache
Cache:sadd (set, key) Add value to the set
Cache:get (key) Get value from cache


Functions

Methods
Cache:new (...)
Create new cache instance

Parameters:

  • ...

Returns:

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

Parameters:

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

Parameters:

Cache:get (key)
Get value from cache

Parameters:

Returns:

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