hashmap_shards

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 6, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Log

type Log interface {
	Info(...interface{})
	Infof(string, ...interface{})
	Debug(...interface{})
	Debugf(string, ...interface{})
	Error(...interface{})
	Errorf(string, ...interface{})
	Warning(...interface{})
	Warningf(string, ...interface{})
}

type RedisHashMap

type RedisHashMap interface {
	HMSetWithExpiration(key string, value map[string]interface{}, ttl time.Duration) error
	HMSet(key string, value map[string]interface{}) error
	HSetWithExpiration(key, field string, value interface{}, ttl time.Duration) error
	HSet(key, field string, value interface{}) error
	HMGet(key string, fields ...string) ([]interface{}, error)
	HGetAll(key string) (map[string]string, error)
	Remove(key string) error
	Keys(pattern string) ([]string, error)
}

func NewHashMapShards

func NewHashMapShards(redis RedisHashMap, log Log, shards uint32) (RedisHashMap, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL