How to Do a Cache WriteΒΆ

Use TSCacheWrite to write to a cache (see the sample Protocol plugin). Possible callback events include:

  • TS_EVENT_CACHE_WRITE_READ - indicates the lookup was successful. The data passed back along with this event is a cache vconnection that can be used to initiate a cache write.
  • TS_EVENT_CACHE_OPEN_WRITE_FAILED - event returned when another continuation is currently writing to this location in the cache. Data payload for this event indicates the possible reason for the write failing (TSCacheError).

Project Versions

Previous topic

Guide to the Cache API

Next topic

How to Do a Cache Remove

This Page