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 ¶
- Constants
- 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 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 ¶
View Source
const ( CACHE_STORAGE_PATH = "/usr/local/goCore/caches" CACHE_JOBS = "/usr/local/goCore/jobs" )
View Source
const ( CACHE_BOOTSTRAP_STORAGE_PATH = CACHE_STORAGE_PATH + "/bootstrap" CACHE_MANIFEST_STORAGE_PATH = CACHE_STORAGE_PATH + "/manifests" )
Variables ¶
View Source
var ByteManifest byteManifest
View Source
var Jobs job
View Source
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.
func LoadJobsFile ¶
func LoadJobsFile() (err error)
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.
Click to show internal directories.
Click to hide internal directories.