// GetPut atomically sets key to value and returns the old value stored at key.
GetPut atomically sets key to value and returns the old value stored at key.
// GetPut atomically sets key to value and returns the old value stored at key .
func (dm *DMap) GetPut(key string, value interface{}) (interface{}, error) {
	prev, err := dm.dm.GetPut(key, value)
	if err != nil {
		return nil, convertDMapError(err)
	}
	return prev, nil
}
func ( dm * DMap ) GetPut ( key string , value interface { } ) ( interface { } , error ) { prev , err := dm . dm . GetPut ( key , value ) if err != nil { return nil , convertDMapError ( err ) } return prev , nil }
GetPut atomically sets key to value and returns the old value stored at key.
GetPut atomically sets key to value and returns the old value stored at key .