Documentation ¶
Overview ¶
© 2022 OSINT Fingerprint Project Contributors
© 2022 OSINT Fingerprint Project Contributors
© 2022 OSINT Fingerprint Project Contributors
Index ¶
Constants ¶
View Source
const MEMCACHED_EXPIRATION = (86400 * 7)
7 days cache expiration
View Source
const POSTGRES_EXPIRATION = time.Duration(1) * time.Hour * 24 * 7
7 days cache expiration
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HybridCache ¶
type HybridCache struct {
// contains filtered or unexported fields
}
func NewHybridCache ¶
func NewHybridCache() *HybridCache
func (HybridCache) Get ¶
func (x HybridCache) Get(category string, source string, key string) (json.RawMessage, error)
func (HybridCache) Set ¶
func (x HybridCache) Set(category string, source string, key string, json json.RawMessage) error
type Memcached ¶
type Memcached struct {
// contains filtered or unexported fields
}
func NewMemcached ¶
func NewMemcached() *Memcached
type PostgresCache ¶
type PostgresCache struct {
// contains filtered or unexported fields
}
func NewPostgresCache ¶
func NewPostgresCache() *PostgresCache
func (PostgresCache) Get ¶
func (x PostgresCache) Get(category string, source string, key string) (json.RawMessage, error)
func (PostgresCache) Set ¶
func (x PostgresCache) Set(category string, source string, key string, json json.RawMessage) error
Click to show internal directories.
Click to hide internal directories.