objstore

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2015 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Object

type Object struct {
	Value string
}

type Store

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

func New

func New(initialSize, maxSize uint) *Store

func (*Store) Get

func (s *Store) Get(key string) (o *Object)

func (*Store) Put

func (s *Store) Put(key string, object Object) (o *Object)

func (*Store) Remove

func (s *Store) Remove(key string)

func (*Store) Size

func (s *Store) Size() int

Jump to

Keyboard shortcuts

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