diff options
author | Christopher Speller <crspeller@gmail.com> | 2016-12-13 22:24:24 -0500 |
---|---|---|
committer | enahum <nahumhbl@gmail.com> | 2016-12-14 00:24:24 -0300 |
commit | 86fb0d87a3a09b237bec124ce0e74cd05aa164be (patch) | |
tree | dab6753888596cc2ba8df8c273ced364bff6b26d /store/store.go | |
parent | 2e58f7504b79fc85d43468ffa06954a23221ea32 (diff) | |
download | chat-86fb0d87a3a09b237bec124ce0e74cd05aa164be.tar.gz chat-86fb0d87a3a09b237bec124ce0e74cd05aa164be.tar.bz2 chat-86fb0d87a3a09b237bec124ce0e74cd05aa164be.zip |
Adding caching layer to some posts calls (#4779)
Diffstat (limited to 'store/store.go')
-rw-r--r-- | store/store.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/store/store.go b/store/store.go index 236fbbc13..b0cc09983 100644 --- a/store/store.go +++ b/store/store.go @@ -130,11 +130,12 @@ type PostStore interface { GetPostsBefore(channelId string, postId string, numPosts int, offset int) StoreChannel GetPostsAfter(channelId string, postId string, numPosts int, offset int) StoreChannel GetPostsSince(channelId string, time int64) StoreChannel - GetEtag(channelId string) StoreChannel + GetEtag(channelId string, allowFromCache bool) StoreChannel Search(teamId string, userId string, params *model.SearchParams) StoreChannel AnalyticsUserCountsWithPostsByDay(teamId string) StoreChannel AnalyticsPostCountsByDay(teamId string) StoreChannel AnalyticsPostCount(teamId string, mustHaveFile bool, mustHaveHashtag bool) StoreChannel + InvalidatePostEtagCache(channelId string) } type UserStore interface { |