summaryrefslogtreecommitdiffstats
path: root/store/store.go
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2017-01-03 09:53:59 -0500
committerenahum <nahumhbl@gmail.com>2017-01-03 11:53:59 -0300
commit42e04d92c47dd7226b7e28e396f8d8d6f36e053b (patch)
treee0f69e9a9400c8e562558affe8f2d86444f16aab /store/store.go
parent547524e5ad502e670ba3d2c2ec18f061ceff95ff (diff)
downloadchat-42e04d92c47dd7226b7e28e396f8d8d6f36e053b.tar.gz
chat-42e04d92c47dd7226b7e28e396f8d8d6f36e053b.tar.bz2
chat-42e04d92c47dd7226b7e28e396f8d8d6f36e053b.zip
Adding memcache to getchannel (#4928)
Diffstat (limited to 'store/store.go')
-rw-r--r--store/store.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/store/store.go b/store/store.go
index 2f5065b88..9fe566844 100644
--- a/store/store.go
+++ b/store/store.go
@@ -85,7 +85,8 @@ type ChannelStore interface {
CreateDirectChannel(userId string, otherUserId string) StoreChannel
SaveDirectChannel(channel *model.Channel, member1 *model.ChannelMember, member2 *model.ChannelMember) StoreChannel
Update(channel *model.Channel) StoreChannel
- Get(id string) StoreChannel
+ Get(id string, allowFromCache bool) StoreChannel
+ InvalidateChannel(id string)
GetFromMaster(id string) StoreChannel
Delete(channelId string, time int64) StoreChannel
SetDeleteAt(channelId string, deleteAt int64, updateAt int64) StoreChannel