Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Utility Namespace / AppCache Class / SetObject Method / SetObject(String,Object,TimeSpan) Method
Key for which to set the object in cache
The value to set
Sliding expiration
In This Topic
    SetObject(String,Object,TimeSpan) Method
    In This Topic
    Sets an object in cache for specified key
    Syntax
    public static void SetObject( 
       string key,
       object value,
       TimeSpan slidingExpiration
    )

    Parameters

    key
    Key for which to set the object in cache
    value
    The value to set
    slidingExpiration
    Sliding expiration
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also