Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 834 Bytes

README.md

File metadata and controls

25 lines (19 loc) · 834 Bytes

Clever Cloud's Materia KV raw TCP Ruby demo

This project shows how to connect to Materia serverless KV store from Clever Cloud and send commands through a TCP interface. It authenticates you with a biscuit-based token, sends commands and prints responses:

  • AUTH
  • PING
  • SET my_key the_value
  • SET my_key2 the_value2
  • SET my_key3 the_value3
  • KEYS *
  • GET my_key2
  • DEL my_key3
  • FLUSHDB

How to use it

You need Ruby and to create a Materia KV add-on on Clever Cloud and set the KV_TOKEN:

export KV_TOKEN=<YOUR_KV_TOKEN>
./mkv.rb

License

This project is licensed under the MIT License - see the LICENSE file for details.