parent
6e91074b50
commit
e3c16a32dd
33 changed files with 332 additions and 263 deletions
4
api/cache/objects.go
vendored
4
api/cache/objects.go
vendored
|
@ -48,7 +48,9 @@ func (o *ObjectsCache) Get(address *address.Address) *object.Object {
|
|||
|
||||
// Put puts an object to cache.
|
||||
func (o *ObjectsCache) Put(obj object.Object) error {
|
||||
return o.cache.Set(obj.ContainerID().String()+"/"+obj.ID().String(), obj)
|
||||
cnrID, _ := obj.ContainerID()
|
||||
objID, _ := obj.ID()
|
||||
return o.cache.Set(cnrID.String()+"/"+objID.String(), obj)
|
||||
}
|
||||
|
||||
// Delete deletes an object from cache.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue