diff options
author | Christopher Speller <crspeller@gmail.com> | 2016-12-22 18:14:54 -0500 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2016-12-22 15:14:54 -0800 |
commit | ffd6ccde2ed4b1d374d0835c5638a189df60a679 (patch) | |
tree | 5b67ceff84678b04cdae08cef554086c4145324e /store/store.go | |
parent | ca61b4bed94ea98530bf4f1b2f7585fe86ef80cd (diff) | |
download | chat-ffd6ccde2ed4b1d374d0835c5638a189df60a679.tar.gz chat-ffd6ccde2ed4b1d374d0835c5638a189df60a679.tar.bz2 chat-ffd6ccde2ed4b1d374d0835c5638a189df60a679.zip |
Adding caching of last 60 posts. (#4880)
Diffstat (limited to 'store/store.go')
-rw-r--r-- | store/store.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/store/store.go b/store/store.go index 643fe925a..8521713d5 100644 --- a/store/store.go +++ b/store/store.go @@ -127,7 +127,7 @@ type PostStore interface { Get(id string) StoreChannel Delete(postId string, time int64) StoreChannel PermanentDeleteByUser(userId string) StoreChannel - GetPosts(channelId string, offset int, limit int) StoreChannel + GetPosts(channelId string, offset int, limit int, allowFromCache bool) StoreChannel GetFlaggedPosts(userId string, offset int, limit int) StoreChannel GetPostsBefore(channelId string, postId string, numPosts int, offset int) StoreChannel GetPostsAfter(channelId string, postId string, numPosts int, offset int) StoreChannel |