Skip to content

einar-hjortdal/redict

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This project is active: new features are being developed, bugs are being fixed.

redict

Redict library for the V language, compatible with Redis <=7.2.4.

Usage

Install with v install einar-hjortdal.redict

import einar_hjortdal.redict

// Configure.
ro := redict.Options{
  url: 'redict://einar:secret@localhost:6379/0' // refer to the options.v file
}

// Create a new client.
client := new_client(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

Development

# Start a Redict container
docker run \
  --rm \
  --detach \
  --name=redict \
  --publish=6379:6379 \
  registry.redict.io/redict

About

Redict library for the V language. Compatible with Redis <=7.2.4 https://redict.io/docs/redis-compat/

Resources

License

Contributing

Stars

Watchers

Forks

Contributors

Languages