hashmap

package
v0.0.0-...-325abe0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2019 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheMap

type CacheMap struct {
	Cache sync.Map
}

func (*CacheMap) Del

func (c *CacheMap) Del(key string) (int64, error)

func (*CacheMap) Exist

func (c *CacheMap) Exist(key string) (bool, error)

func (*CacheMap) Expire

func (c *CacheMap) Expire(key string, expire int64) (bool, error)

func (*CacheMap) Get

func (c *CacheMap) Get(key string) (string, error)

func (*CacheMap) Incrby

func (c *CacheMap) Incrby(key string, v int64) (int64, error)

func (*CacheMap) ReleaseDistributedLock

func (c *CacheMap) ReleaseDistributedLock(key string, v string) (bool, error)

func (*CacheMap) Set

func (c *CacheMap) Set(key string, value string) error

func (*CacheMap) SetEx

func (c *CacheMap) SetEx(key string, value string, milli int64) error

func (*CacheMap) TryGetDistributedLock

func (c *CacheMap) TryGetDistributedLock(key string, v string) (bool, error)

Jump to

Keyboard shortcuts

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