8000 GitHub - einar-hjortdal/redict: Redict client for the V language
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

einar-hjortdal/redict

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

redict

Redict library for the V language.

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

Non-objectives

Development

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

About

Redict client for the V language

Resources

License

Stars

Watchers

Forks

Languages

0