weaverutils

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2023 License: CC0-1.0 Imports: 10 Imported by: 0

README

WeaverUtils

Go Reference

Service Weaver Utilities

Installation

go get -u gopkg.eu.org/weaverutils

Components

WeaverFastCache

WeaverFastCache is a FastCache component for Service Weaver.

Routing Key: xxhash64(key)

Documentation

Index

Constants

View Source
const WeaverFastCacheDefaultSize = 32 * 1 << 20 // 32MB

Variables

This section is empty.

Functions

This section is empty.

Types

type WeaverFastCache

type WeaverFastCache interface {
	Get(_ context.Context, key []byte) ([]byte, error)
	Set(_ context.Context, key []byte, value []byte) error
	Del(_ context.Context, key []byte) error
	Has(_ context.Context, key []byte) (bool, error)
	HasGet(_ context.Context, key []byte) ([]byte, bool, error)
}

WeaverFastCache is a FastCache component for Service Weaver.

https://github.com/VictoriaMetrics/fastcache

Configuration Options:

["gopkg.eu.org/weaverutils/WeaverFastCache"]

Size = 33554432

Jump to

Keyboard shortcuts

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