mirror of
				https://github.com/openimsdk/open-im-server.git
				synced 2025-10-26 21:22:16 +08:00 
			
		
		
		
	* refactor: db refactor and cache key add. * refactor: db refactor and cache key add. * refactor: go version update. * refactor: file name change.
		
			
				
	
	
		
			19 lines
		
	
	
		
			826 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			826 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package cache
 | |
| 
 | |
| import (
 | |
| 	"context"
 | |
| )
 | |
| 
 | |
| type ThirdCache interface {
 | |
| 	SetFcmToken(ctx context.Context, account string, platformID int, fcmToken string, expireTime int64) (err error)
 | |
| 	GetFcmToken(ctx context.Context, account string, platformID int) (string, error)
 | |
| 	DelFcmToken(ctx context.Context, account string, platformID int) error
 | |
| 	IncrUserBadgeUnreadCountSum(ctx context.Context, userID string) (int, error)
 | |
| 	SetUserBadgeUnreadCountSum(ctx context.Context, userID string, value int) error
 | |
| 	GetUserBadgeUnreadCountSum(ctx context.Context, userID string) (int, error)
 | |
| 	SetGetuiToken(ctx context.Context, token string, expireTime int64) error
 | |
| 	GetGetuiToken(ctx context.Context) (string, error)
 | |
| 	SetGetuiTaskID(ctx context.Context, taskID string, expireTime int64) error
 | |
| 	GetGetuiTaskID(ctx context.Context) (string, error)
 | |
| }
 |