cacheable.go

Summary

Maintainability
A
0 mins
Test Coverage
package query

import "time"

// Cacheable is an interface used to allow queries to cache their results.
type Cacheable interface {
    CacheKey() []byte
    CacheDuration() time.Duration
}