netcache

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrExpired = fmt.Errorf("expired")

Functions

func Del

func Del(k string) error

Del - deletes a value from db

func Set

func Set(k string, newValue *CValue) error

Set - sets a value to a key in db

Types

type CValue

type CValue = schema.CacheValue

CValue is the cache object for a network.

func Get

func Get(k string) (*CValue, error)

Get - gets a value from db, if expired, return err

Jump to

Keyboard shortcuts

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