Quickstart
This assumes a Tellstone server is already running locally. See Installation if it isn’t.
Redis-compatible (RESP) — easiest
Section titled “Redis-compatible (RESP) — easiest”Start the server with RESP enabled, then use any Redis client:
task run:respredis-cli -p 6379 PING # PONGredis-cli -p 6379 SET foo bar # OKredis-cli -p 6379 GET foo # "bar"redis-cli -p 6379 SET k v EX 60 # OK (60s TTL)redis-cli -p 6379 DEL foo # (integer) 1Supported commands today: PING, GET, SET (with EX/PX), DEL.
Unknown commands return a -ERR reply without dropping the connection.
Native binary protocol (Go client)
Section titled “Native binary protocol (Go client)”The native protocol is the fastest path. Use the public client package:
import "github.com/Saxy/Tellstone/client"
c, _ := client.Dial("127.0.0.1:9988", 2*time.Second)defer c.Close()
scratch := make([]byte, 4096) // reusable response buffer (zero-alloc)c.Set([]byte("hello"), []byte("world"), 0, scratch) // ttlMs=0 -> no expiryval, _ := c.Get([]byte("hello"), scratch) // val == "world"A runnable example lives in cmd/example/client in the main repo.
Next steps
Section titled “Next steps”- See the command reference for the exact commands and flags supported by each protocol.
- Read Data Model for how keys, values, and TTLs are represented today.
- Check Configuration for tuning memory limits, eviction, and enabling WAL persistence for crash recovery.
- Explore Architecture to understand how the protocols, storage engine, and persistence layer fit together.