Documentation ¶
Overview ¶
Package globalcache implements a wrapper around go-cache for Flogo. go-cache is an in-memory key:value store/cache similar to memcached that is suitable for applications running on a single machine. Its major advantage is that, being essentially a thread-safe map[string]interface{} with expiration times, it doesn't need to serialize or transmit its contents over the network.
Index ¶
Constants ¶
View Source
const ( // CacheName represents the name of the cache as it exists in the Flogo engine CacheName = "GlobalCache" // DefaultExpiryTime is the default expiry time if no cache was created DefaultExpiryTime = 5 // DefaultPurgeTime is the default purge time if no cache was created DefaultPurgeTime = 10 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GlobalCache ¶
type GlobalCache struct {
// contains filtered or unexported fields
}
GlobalCache is an activity that governs a single engine cache
func (*GlobalCache) Eval ¶
func (a *GlobalCache) Eval(context activity.Context) (done bool, err error)
Eval implements activity.Activity.Eval
func (*GlobalCache) Metadata ¶
func (a *GlobalCache) Metadata() *activity.Metadata
Metadata implements activity.Activity.Metadata
Click to show internal directories.
Click to hide internal directories.