data_store

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2014 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Data store functionality. For now, we're just keeping in memory, but optional use of a persistent storage backend eventually is on the list of things to do down the road. Using go-cache (https://github.com/pmylund/go-cache) for storing our data - might be worth using for normal caching later as well.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataStore

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

func New

func New() *DataStore

func (*DataStore) Delete

func (ds *DataStore) Delete(key_type string, key string)

func (*DataStore) Get

func (ds *DataStore) Get(key_type string, key string) (interface{}, bool)

func (*DataStore) GetList

func (ds *DataStore) GetList(key_type string) []string

func (*DataStore) Set

func (ds *DataStore) Set(key_type string, key string, val interface{})

Jump to

Keyboard shortcuts

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