cache

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2023 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package cache the cache JS implementation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

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

Cache interface is used to store string or bytes.

func (*Cache) Del

func (c *Cache) Del(call goja.FunctionCall, vm *goja.Runtime) goja.Value

Del removes key from the cache.

func (*Cache) Get

func (c *Cache) Get(call goja.FunctionCall, vm *goja.Runtime) goja.Value

Get returns string.

func (*Cache) GetBytes

func (c *Cache) GetBytes(call goja.FunctionCall, vm *goja.Runtime) goja.Value

GetBytes returns ArrayBuffer.

func (*Cache) Set

func (c *Cache) Set(call goja.FunctionCall, vm *goja.Runtime) goja.Value

Set saves string to the cache with key.

func (*Cache) SetBytes

func (c *Cache) SetBytes(call goja.FunctionCall, vm *goja.Runtime) goja.Value

SetBytes saves ArrayBuffer to the cache with key.

type Module

type Module struct{}

Module js module

func (*Module) Exports

func (*Module) Exports() any

Exports returns the module instance

Jump to

Keyboard shortcuts

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