Skip to content

Clever Cloud's Materia serverless key-value store raw TCP demo, written in Ruby

License

Notifications You must be signed in to change notification settings

CleverCloud/mkv-raw-tcp-ruby-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

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.

About

Clever Cloud's Materia serverless key-value store raw TCP demo, written in Ruby

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages