Skip to content
/ hash Public

Hash is an in-memory Redis like hash datastructure

License

Notifications You must be signed in to change notification settings

arriqaaq/hash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hash

hash is an in-memory Redis like hash datastructure

Property Type Description
key string The identifier of the hash key
member string The identifier of the member. It must be unique within the hash.
value interface {} value associated with this node

Getting Started

Installing

To start using hash, install Go and run go get:

$ go get -u github.com/arriqaaq/hash

This will retrieve the library.

Usage

package main

import "github.com/arriqaaq/hash"

func main() {
	hash := hash.New()

	hash.HSet(key, "a", []byte("hash_1"))
	hash.HSet(key, "b", []byte("hash_2"))
	hash.HSet(key, "c", []byte("hash_3"))
}

Supported Commands

HDEL
HEXISTS
HGET
HGETALL
HKEYS
HLEN
HSCAN
HSET
HSETNX
HVALS

About

Hash is an in-memory Redis like hash datastructure

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages