Modify truncate() in CacheXcache API