SET &string name "Mitch"
# => OK.
SET &int age "24"
# => OK.
GET name
# => "Mitch"
GET age
# => 24
DELETE name
# => OK.
EXIST name
# => false
Etna currently supports six basic types:
Type | Alias |
---|---|
&string | &s |
&int | &i |
&float | &f |
&bool | &b |
&null | &n |
&json | &j |
Etna currently supports four basic commands:
SET
GET
DELETE
EXIST
Set a new value of type string and name
as its key:
SET &string name "John"
^ ^ ^ ^
command type key value
Get the name
value:
GET name
^ ^
command key
Delete the name
value:
DELETE name
^ ^
command key
Check if the name
key exists:
EXIST name
^ ^
command key