odurc / lua-toml-redis

toml decoder/encoder for Lua

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

lua-toml-redis

This project is a fork of lua-toml which was modified to read a toml file and export the contents to redis.

Usage

redis-cli --eval toml-redis.lua , "`cat /path/to/file.toml`"
redis-cli --eval toml-redis.lua , "`cat /path/to/file.toml`" "mykey"

In the first example a hash named settings is created and the contents of the TOML file are created as fields of that hash. In the second command above, the behavior is the same but the contents are added to mykey instead.

License

lua-toml is licensed under MIT and written by Jonathan Stoler.

lua-toml-redis is licensed under MIT.

About

toml decoder/encoder for Lua

License:MIT License


Languages

Language:Lua 100.0%