rocacheexample

package module
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2023 License: BSD-3-Clause Imports: 3 Imported by: 0

README

Struct cache example for Go

Build Status Go Reference

Source files are distributed under the BSD-style license.

About

The software is considered to be at an alpha level of readiness, its extremely slow and allocates a lots of memory.

Benchmark

$ go test -count=1 -race -bench ./...
goos: linux
goarch: amd64
pkg: github.com/danil/rocacheexample
cpu: 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz
BenchmarkCache/cache-8             13396         89845 ns/op
PASS
ok      github.com/danil/rocacheexample 2.143s

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUncached = errors.New("closed")

Functions

This section is empty.

Types

type T

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

func New

func New() *T

func (*T) Bar

func (v *T) Bar() string

func (*T) Close

func (v *T) Close()

func (*T) String

func (v *T) String() string

Jump to

Keyboard shortcuts

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