updateExpirationDt method
Replaces the expiration date and time of the cache item identified by
key with the CkDateTime value supplied in expireDateTime. The cached
data and ETag are unchanged.
Existing item required: This method updates metadata; it does not create a new cache entry when the key is absent.
Throws a ChilkatException if the call fails; the details are in ChilkatException.lastErrorText. Throws an ArgumentError if a string argument contains a NUL character.
Implementation
void updateExpirationDt(String key, CkDateTime expireDateTime) {
final h = _handle;
using((arena) {
final r = _CkCache_UpdateExpirationDt(
h,
_toNative(arena, key, 'key'),
expireDateTime._handle,
);
if (r == 0) {
throw _fail('updateExpirationDt');
}
});
}