...

Package cachedfile

import "simonwaldherr.de/go/golibs/cachedfile"
Overview
Index

Overview ▾

simplifies file access and adds a simple caching method

func Clean

func Clean(filename string) error

func Init

func Init(expirationTime, cleanupInterval time.Duration)

func Read

func Read(filename string) (string, error)

func Reset

func Reset()

func Size

func Size(filename string) (int64, error)

func Stop

func Stop()

func Write

func Write(filename, str string, append bool) error