tpcached — Enduro/X cache maintenance daemon
tpcached is daemon process started by client process monitor (cpmsrv) (it needs to be registered in <clients> section for Enduro/X application domain). Only one copy of tpcached can be stated per cache database. If no CC tags are used, then one copy shall be run over the app domain. If CC tags are used for cache configuration, then multiple tpcached daemons can be started, per CC tag. The daemon performs following functions:
In case if cluster operations are configured and flag bcastdel is present, then in case of record removal, this event is broadcast to Enduro/X event server which then delivers the notification of record removal to all machines. The event is not sent in case if duplicate record is removed, as duplicate scan can be done by tpcached on other machine.
tpcached can process any database. This can be normal service data storage databases or keygroup storage/keyitems storage - used for linking some kind of records into single group (for example user is doing paging over its statement records). Thus for example the group is user id and items are pages. In this case expiry and other limits can be applied to keygroup or key items databases too. In case if key item (some page expires) for db with keyitems flag, then the item is removed from group too. In case if group expires (database with keygroup flag), then all linked records are removed from keyitems database and the group record by it self is removed too. In case of group expire, only group key is broadcast to other nodes (if configured so).