Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateRandomString ¶
CreateRandomString creates a random string of `size`.
func IsNil ¶
func IsNil(v interface{}) bool
IsNil checks is the provided interface is nil-valued or not.
func IsSubsetSlice ¶
IsSubsetSlice checks if the first slice is a subset of the second one.
func RecalculateAverage ¶
RecalculateAverage recalculates an average by including a new value using the running average method.
Types ¶
type RedisCertificateCache ¶
type RedisCertificateCache struct {
// contains filtered or unexported fields
}
RedisCertificateCache is used to store program certificate data inside redis.
func NewCache ¶
func NewCache() (*RedisCertificateCache, error)
NewCache initializes a new RedisCertificateCache struct.
func (*RedisCertificateCache) Delete ¶
func (r *RedisCertificateCache) Delete(ctx context.Context, key string) error
Delete removes the data stored at the given key.
Click to show internal directories.
Click to hide internal directories.