cache

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LRU

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

func NewLRU

func NewLRU(size int) LRU

func (LRU) AddProgram

func (c LRU) AddProgram(k uint64, program *goja.Program)

func (LRU) AddRender

func (c LRU) AddRender(program uint64, data uint64, rendered string)

func (LRU) GetProgram

func (c LRU) GetProgram(k uint64) *goja.Program

func (LRU) GetRender

func (c LRU) GetRender(program uint64, data uint64) (rendered string, ok bool)

type TwoQueue

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

func NewTwoQueue

func NewTwoQueue(size int) TwoQueue

func (TwoQueue) AddProgram

func (c TwoQueue) AddProgram(k uint64, program *goja.Program)

func (TwoQueue) AddRender

func (c TwoQueue) AddRender(program uint64, data uint64, rendered string)

func (TwoQueue) GetProgram

func (c TwoQueue) GetProgram(k uint64) *goja.Program

func (TwoQueue) GetRender

func (c TwoQueue) GetRender(program uint64, data uint64) (rendered string, ok bool)

Jump to

Keyboard shortcuts

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