gfcache

package
v1.6.16 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package gfcache provides reading and caching for file contents.

文件缓存.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBinContents

func GetBinContents(path string, expire ...int) []byte

获得文件内容 []byte,expire参数为缓存过期时间,单位为秒。

func GetContents

func GetContents(path string, expire ...int) string

获得文件内容 string,expire参数为缓存过期时间,单位为秒。

Types

This section is empty.

Jump to

Keyboard shortcuts

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