cache

package
v0.0.0-...-89bbdfb Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2022 License: Apache-2.0, BSD-3-Clause, MIT Imports: 3 Imported by: 0

Documentation

Overview

* Copyright © 2020. TIBCO Software Inc. * This file is subject to the license terms contained * in the license file that is distributed with this file.

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
}

func NewCache

func NewCache(size int) *Cache

func (*Cache) Add

func (this *Cache) Add(id string, data interface{}) error

func (*Cache) Get

func (this *Cache) Get(id string) interface{}

type CacheEntry

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

func NewCacheEntry

func NewCacheEntry(eId int) *CacheEntry

func (*CacheEntry) Clear

func (this *CacheEntry) Clear()

func (*CacheEntry) SetNext

func (this *CacheEntry) SetNext(next *CacheEntry) *CacheEntry

Jump to

Keyboard shortcuts

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