Initial cloud-services repo - gateway service + pkg modules

This commit is contained in:
Chris Rai
2026-01-30 23:14:52 -05:00
commit fbb820d7b3
1037 changed files with 171318 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
package redisutils
import (
"fiskerinc.com/modules/redis"
"time"
)
type GetCachedSetMock func(key string) (map[string]struct{}, error)
type CacheSetMock struct {
GetCachedSetMock func(key string) (map[string]struct{}, error)
UpdateSetCacheMock func(key string, cacheValues []interface{}) error
CreateSetCacheMock func(key string, cacheValues []interface{}, expireTime time.Time) error
}
func (c CacheSetMock) SetConnection(client redis.Client) {}
func (c CacheSetMock) GetCachedSet(key string) (map[string]struct{}, error) {
return c.GetCachedSetMock(key)
}
func (c CacheSetMock) UpdateSetCache(key string, cacheValues []interface{}) error {
return c.UpdateSetCacheMock(key, cacheValues)
}
func (c CacheSetMock) CreateSetCache(key string, cacheValues []interface{}, expireTime time.Time) error {
return c.CreateSetCacheMock(key, cacheValues, expireTime)
}