simplecache

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package simplecache for simple using HTTP cache.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SimlpleCache

type SimlpleCache struct {
	Folder  string
	Dir     string
	Expired time.Duration
	// contains filtered or unexported fields
}

SimlpleCache struct

func NewSimpleCache

func NewSimpleCache(Dir, Folder string, Expired time.Duration) *SimlpleCache

NewSimpleCache new a SimlpleCache

func (*SimlpleCache) Get

func (s *SimlpleCache) Get(name string) ([]byte, error)

Get get cache

func (*SimlpleCache) Set

func (s *SimlpleCache) Set(name string, data []byte) error

Set data

Jump to

Keyboard shortcuts

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