vhash

package
v0.0.0-...-bcffac6 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2016 License: BSD-2-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Item

type Item struct {
	Key   uint64
	Value Value
}

type Value

type Value interface {
}

Values that go into Vhash need to satisfy this interface.

type Vhash

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

func NewVhash

func NewVhash() *Vhash

func (*Vhash) Clear

func (vh *Vhash) Clear()

func (*Vhash) Delete

func (vh *Vhash) Delete(key uint64) bool

func (*Vhash) Get

func (vh *Vhash) Get(key uint64) (v Value, ok bool)

func (*Vhash) Lock

func (vh *Vhash) Lock()

func (*Vhash) Set

func (vh *Vhash) Set(key uint64, value Value)

func (*Vhash) Unlock

func (vh *Vhash) Unlock()

Jump to

Keyboard shortcuts

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