bcache

package
v1.19.0-beta1 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2024 License: BSD-2-Clause Imports: 1 Imported by: 0

Documentation

Rendered for js/wasm

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct{}

Cache relies on GC to periodically clear the cache. Since GopherJS doesn't have the same GC hooks, it currently can not register this cache with the GC. Without this cache Boring crypto, in particular public and private RSA and ECDSA keys, will be slower because the cache will always miss.

func (*Cache) Clear

func (c *Cache) Clear()

func (*Cache) Get

func (c *Cache) Get(k unsafe.Pointer) unsafe.Pointer

func (*Cache) Put

func (c *Cache) Put(k, v unsafe.Pointer)

func (*Cache) Register

func (c *Cache) Register()

Jump to

Keyboard shortcuts

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