Awesome
redict
Redict library for the V language.
Current features
- RESP version 3
- Commands
- Connection pool
Usage
Install with v install einar-hjortdal.redict
import einar_hjortdal.redict
// Configure.
mut ro := redict.Options{
// refer to the options.v file
}
// Create a new client.
client := new_client(mut opts)
// Issue commands as Client methods.
// Supported commands are listed in the `cmdable.v` file.
mut result := client.set('test_key', 'test_value', 0)!
// Get the value from results
result = client.get('test_key')!
println(result.val())
Objectives
- Provide a driver for Redict
- Support all Redict commands
- Provide utility functions
Non-objectives
- Support features not supported by Redict
Development
# Start a Redict container
podman run \
--rm \
--detach \
--name=redict \
--tz=local \
--publish=6379:6379 \
registry.redict.io/redict