Skip to content

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

License

Notifications You must be signed in to change notification settings

CleverCloud/mkv-raw-tcp-v

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 V 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 V language and to create a Materia KV add-on on Clever Cloud and set the KV_TOKEN:

export KV_TOKEN=<YOUR_KV_TOKEN>
v run .

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 V

Topics

Resources

License

Stars

Watchers

Forks

Languages