# Com.webos.service.filecache documentation error?

**URL:** <https://forum.webosose.org/t/com-webos-service-filecache-documentation-error/478>\
**Category:** Platform Development\
**Created:** [July 23, 2018, 6:25pm UTC](https://forum.webosose.org/t/com-webos-service-filecache-documentation-error/478 "2018-07-23T18:25:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ericblade](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.webosose.org/ericblade/32/39_2.png) [@ericblade](https://forum.webosose.org/u/ericblade)\
**Post date:** [July 23, 2018, 6:25pm UTC](https://forum.webosose.org/t/com-webos-service-filecache-documentation-error/478/1 "2018-07-23T18:25:07Z")

</div>

Hello! I'm messing around with the filecache service, and I'm noticing an undocumented error return:

```auto
# luna-send -n 1 luna://com.webos.service.filecache/InsertCacheObject '{"typeName":"test","fileName":"test.txt","size":1024}'
{"errorCode":-200,"errorText":"InsertCacheObject: No type 'test' defined.","returnValue":false}

```

Clearly, from that error message, I need to call DefineType first. However, the documentation for DefineType says:

```auto
A DefineType ​method defines a new cache type. This is intended for use by the backup service.

```

which implies that it is something to be used by the "backup service", which is something that I don't think has been present since legacy webOS.

So, I think the documentation needs to be updated as to how to use DefineType and InsertCacheObject, and the error from InsertCacheObject should be added.

Thanks!

---

<div class="post-metadata">

**Author:** ![SRKang](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.webosose.org/srkang/32/28_2.png) [@SRKang](https://forum.webosose.org/u/SRKang)\
**Post date:** [August 28, 2018, 1:17am UTC](https://forum.webosose.org/t/com-webos-service-filecache-documentation-error/478/3 "2018-08-28T01:17:59Z")

</div>

Hello ericblade,

The developer has updated filecache API doc.  
Please, check the doc.

Thanks.
