summaryrefslogtreecommitdiff
path: root/internal/config/config.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/config/config.go')
-rw-r--r--internal/config/config.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/internal/config/config.go b/internal/config/config.go
index a1e00ea8d..ab353f32a 100644
--- a/internal/config/config.go
+++ b/internal/config/config.go
@@ -157,6 +157,10 @@ type Configuration struct {
type CacheConfiguration struct {
GTS GTSCacheConfiguration `name:"gts"`
+
+ VisibilityMaxSize int `name:"visibility-max-size"`
+ VisibilityTTL time.Duration `name:"visibility-ttl"`
+ VisibilitySweepFreq time.Duration `name:"visibility-sweep-freq"`
}
type GTSCacheConfiguration struct {
@@ -180,6 +184,14 @@ type GTSCacheConfiguration struct {
EmojiCategoryTTL time.Duration `name:"emoji-category-ttl"`
EmojiCategorySweepFreq time.Duration `name:"emoji-category-sweep-freq"`
+ FollowMaxSize int `name:"follow-max-size"`
+ FollowTTL time.Duration `name:"follow-ttl"`
+ FollowSweepFreq time.Duration `name:"follow-sweep-freq"`
+
+ FollowRequestMaxSize int `name:"follow-request-max-size"`
+ FollowRequestTTL time.Duration `name:"follow-request-ttl"`
+ FollowRequestSweepFreq time.Duration `name:"follow-request-sweep-freq"`
+
MediaMaxSize int `name:"media-max-size"`
MediaTTL time.Duration `name:"media-ttl"`
MediaSweepFreq time.Duration `name:"media-sweep-freq"`
@@ -200,6 +212,10 @@ type GTSCacheConfiguration struct {
StatusTTL time.Duration `name:"status-ttl"`
StatusSweepFreq time.Duration `name:"status-sweep-freq"`
+ StatusFaveMaxSize int `name:"status-fave-max-size"`
+ StatusFaveTTL time.Duration `name:"status-fave-ttl"`
+ StatusFaveSweepFreq time.Duration `name:"status-fave-sweep-freq"`
+
TombstoneMaxSize int `name:"tombstone-max-size"`
TombstoneTTL time.Duration `name:"tombstone-ttl"`
TombstoneSweepFreq time.Duration `name:"tombstone-sweep-freq"`