key

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: Apache-2.0 Imports: 7 Imported by: 9

Documentation

Overview

Package cache provides cache keys

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Key

type Key func() (string, error)

Key provides a cache key.

func FileChecksum

func FileChecksum(file string) Key

FileChecksum creates a CacheKey for given file.

func FileStats

func FileStats(file string) Key

FileStats creates a CacheKey for given file.

func FolderStats

func FolderStats(folder string) Key

func String

func String(s ...string) Key

String creates a CacheKey for given strings.

Jump to

Keyboard shortcuts

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