stub

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package stub is the zero-infrastructure ByteCache: every Get misses and every write is dropped, so a graph boots and runs uncached without Redis.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct{}

Cache is the always-miss ByteCache.

func New

func New() Cache

New returns the stub cache.

func (Cache) Delete

func (Cache) Delete(context.Context, string)

Delete is a no-op.

func (Cache) Get

func (Cache) Get(context.Context, string) ([]byte, bool)

Get always misses.

func (Cache) Set

Set drops the value.

Jump to

Keyboard shortcuts

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