radix

package
v0.0.0-...-2e7882b Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package radix implements a driver for github.com/armon/go-radix

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tree

type Tree struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

Tree implements a cache store with a radix tree

func New

func New() *Tree

New returns an initialized tree

func (*Tree) Del

func (t *Tree) Del(key string) error

Del implements the "cache.KeyStore".Del() interface

func (*Tree) Exists

func (t *Tree) Exists(key string) bool

Exists returns true if the key exists

func (*Tree) Get

func (t *Tree) Get(key string, dstVal interface{}) error

Get implements the "cache.KeyStore".Get() interface

func (*Tree) Set

func (t *Tree) Set(key string, val interface{}, exp time.Duration) error

Set implements the "cache.KeyStore".Set() interface

func (*Tree) Tree

func (t *Tree) Tree() *goradix.Tree

Tree returns the underlying go-radix tree for a more complete featureset

Jump to

Keyboard shortcuts

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