Ruby
Ruby
Replace Deprecated GetExpirationDt
Shows how to replace the deprecated GetExpirationDt method.Chilkat Ruby Downloads
require 'chilkat'
cache = Chilkat::CkCache.new()
# ....
# ....
cache_item_key = "xyz"
# Instead of this:
# dt1 is a CkDateTime
dt1 = cache.GetExpirationDt(cache_item_key)
# Do this:
dt2 = Chilkat::CkDateTime.new()
dt2.SetFromRfc822(cache.getExpirationStr(cache_item_key))