Documentation
¶
Overview ¶
Package fileCache will provide simple file content caching tools for in-Memory access to files. It uses golang/groupcache to cache your data into memory on multiple HTTP Pool servers.
Index ¶
- Variables
- func DeleteAllBootStrapFileCache() (err error)
- func DeleteAllManifestFileCache() (err error)
- func DeleteBootStrapFileCache(key string) (err error)
- func DeleteManifestFileCache(key string) (err error)
- func DoesHashExistInCache(key string, value string) (exists bool)
- func DoesHashExistInManifestCache(key string, value string) (exists bool)
- func GetFile(path string) ([]byte, error)
- func GetHTMLFile(path string) (string, error)
- func GetString(key string) (string, error)
- func Initialize()
- func LoadCachedBootStrapFromKeyIntoMemory(key string) (err error)
- func LoadCachedManifestFromKeyIntoMemory(key string) (err error)
- func LoadJobsFile() (err error)
- func SetGoCoreStoragePath(directory string)
- func SetGroupCache(servers []string)
- func SetString(key string, value string) error
- func UpdateBootStrapMemoryCache(key string, value string)
- func UpdateManifestMemoryCache(key string, value string, byteSize int)
- func WriteBootStrapCacheFile(key string) (err error)
- func WriteJobCacheFile() (err error)
- func WriteManifestCacheFile(key string) (err error)
Constants ¶
This section is empty.
Variables ¶
var ByteManifest byteManifest
var CACHE_BOOTSTRAP_STORAGE_PATH string
var CACHE_JOBS string
var CACHE_MANIFEST_STORAGE_PATH string
var CACHE_STORAGE_PATH string
var Jobs job
var Model model
Functions ¶
func DeleteAllBootStrapFileCache ¶
func DeleteAllBootStrapFileCache() (err error)
func DeleteAllManifestFileCache ¶
func DeleteAllManifestFileCache() (err error)
func DeleteManifestFileCache ¶
func DoesHashExistInCache ¶
func GetHTMLFile ¶
Returns the html by path (key) from group cache
func Initialize ¶
func Initialize()
Call Initialize in main before any calls to this package are performed. serverSettings package must be initialized before fileCache. Developers can call SetGoCoreStoragePath() with a path of their choice for storage of where bootstrap caches and jobs files (for one time cron jobs are stored
func LoadJobsFile ¶
func LoadJobsFile() (err error)
func SetGoCoreStoragePath ¶ added in v1.4.9
func SetGoCoreStoragePath(directory string)
SetGoCoreStoragePath set a directory with a trailing slash of where you want goCore to set
func SetGroupCache ¶
func SetGroupCache(servers []string)
Will update the group cache http pool. Use for dynamic systems that update at runtime.
func WriteBootStrapCacheFile ¶
func WriteJobCacheFile ¶
func WriteJobCacheFile() (err error)
func WriteManifestCacheFile ¶
Types ¶
This section is empty.