package
0.0.0-20240628203544-b1838e96a1a0
Repository: https://github.com/alextopher/apod-bot.git
Documentation: pkg.go.dev

# Functions

AddAll is a helper function to add a list of responses to a cache.
NewAppendCache creates a new APODCache.
NewEmptyCache creates a new EmptyCache.
NewFSCache creates a new FSCache.
NewInMemoryFS creates a new InMemoryFS.
NewLocalFS creates a new LocalFS.

# Structs

AppendOnly is a thread-safe cache that allows appending new items.
Empty cache that does nothing.
FSCache is a cache that stores cached items in a "file system".
InMemoryFS is a file system that stores files in memory.
LocalFS is a file system that interacts with the local file system through a base directory.

# Interfaces

Cache interface for caching generic types.
FS is an interface that abstracts over types that behave like a file system.
HasDate is an interface for types that have a date based timestamp.