mirror of
https://github.com/anchore/syft.git
synced 2025-11-17 08:23:15 +01:00
17 lines
245 B
Go
17 lines
245 B
Go
package cache
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/spf13/afero"
|
|
)
|
|
|
|
// NewInMemory returns an in-memory only cache manager
|
|
func NewInMemory(ttl time.Duration) Manager {
|
|
return &filesystemCache{
|
|
dir: "",
|
|
fs: afero.NewMemMapFs(),
|
|
ttl: ttl,
|
|
}
|
|
}
|