feat(cache): Add a JS interface to CacheRegister

return void
StringBuffer ?