Sample code for 30+ languages & platforms
C++

Replace Deprecated GetExpirationDt

Shows how to replace the deprecated GetExpirationDt method.

Chilkat C++ Downloads

C++
#include <CkCache.h>
#include <CkDateTime.h>

void ChilkatSample(void)
    {
    CkCache cache;

    //  ....
    //  ....

    const char *cache_item_key = "xyz";

    //  Instead of this:
    CkDateTime *dt1 = cache.GetExpirationDt(cache_item_key);
    delete dt1;

    //  Do this:
    CkDateTime dt2;
    dt2.SetFromRfc822(cache.getExpirationStr(cache_item_key));
    }