Browse Source

update cache

lijian 4 years ago
parent
commit
e87016d554
1 changed files with 1 additions and 1 deletions
  1. 1 1
      services/registry/registry.go

+ 1 - 1
services/registry/registry.go

@@ -359,7 +359,7 @@ func (r *Registry) FindDeviceByIdentifier(identifier string, reply *models.Devic
 
 	cache := getCache()
 	cacheKey := fmt.Sprintf("Device:%v", identifier)
-	if cacheValue, ok := cache.Get(identifier); ok {
+	if cacheValue, ok := cache.Get(cacheKey); ok {
 		device := cacheValue.(*models.Device)
 		setDevice(reply, device)
 	} else {