htexpire

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 18, 2018 License: MIT Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HashTable

type HashTable struct {
	// contains filtered or unexported fields
}

HashTable hash table with mutex locker

func New

func New() *HashTable

New new a hash table

func (*HashTable) Get

func (ht *HashTable) Get(key string) (bool, error)

Get get specified key in hash table

func (*HashTable) Remove

func (ht *HashTable) Remove(key string) error

Remove remove specified key

func (*HashTable) Set

func (ht *HashTable) Set(key string) error

Set add a new item in hash table

func (*HashTable) Size

func (ht *HashTable) Size() int

Size get the size of hash table

Jump to

Keyboard shortcuts

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