Documentation
¶
Index ¶
- type Cache
- type CacheModule
- func (c *CacheModule) Cleanup() error
- func (c *CacheModule) CreateModuleObject(runtime *sobek.Runtime) sobek.Value
- func (c *CacheModule) IsEnabled(enabledModules map[string]bool) bool
- func (c *CacheModule) Name() string
- func (c *CacheModule) Setup(runtime *sobek.Runtime, manager *vm.VMManager) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache interface { Get(ctx context.Context, key string) ([]byte, error) Set(ctx context.Context, key string, value []byte, timeout time.Duration) error Del(ctx context.Context, key string) error }
Cache interface for storing bytes with TTL
type CacheModule ¶
type CacheModule struct {
// contains filtered or unexported fields
}
CacheModule provides in-memory caching with TTL support
func (*CacheModule) Cleanup ¶
func (c *CacheModule) Cleanup() error
Cleanup performs any necessary cleanup
func (*CacheModule) CreateModuleObject ¶
func (c *CacheModule) CreateModuleObject(runtime *sobek.Runtime) sobek.Value
CreateModuleObject creates the cache object when required
Click to show internal directories.
Click to hide internal directories.