| 
					
				 | 
			
			
				@@ -7,6 +7,8 @@ import ( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	"net/url" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	"time" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	"git.chuangxin1.com/cx/myth/cache" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	"git.chuangxin1.com/cx/myth" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 ) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -58,6 +60,9 @@ func (wc *Client) getToken() (token string, err error) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		key := key(wc.AppID) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		memcache.Store(key, wc) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		key = keyToken(wc.AppID) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		ct := ClientToken{AppID: wc.AppID, AccessToken: wc.AccessToken, LastTokenTime: now} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		bs, _ := json.Marshal(ct) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		cache.Set(key, string(bs), 0) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		//cache.Store(key, accessToken) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	return 
			 |