mirror of
				https://github.com/openimsdk/open-im-server.git
				synced 2025-10-31 16:32:12 +08:00 
			
		
		
		
	* refactor: db refactor and cache key add. * refactor: db refactor and cache key add. * refactor: go version update. * refactor: file name change.
		
			
				
	
	
		
			12 lines
		
	
	
		
			251 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			251 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package cachekey
 | |
| 
 | |
| import "github.com/openimsdk/protocol/constant"
 | |
| 
 | |
| const (
 | |
| 	UidPidToken = "UID_PID_TOKEN_STATUS:"
 | |
| )
 | |
| 
 | |
| func GetTokenKey(userID string, platformID int) string {
 | |
| 	return UidPidToken + userID + ":" + constant.PlatformIDToName(platformID)
 | |
| }
 |