required
@Anxious Addax 
man what is this I was just checking the spelling of 'required'required
@Anxious Addax 
man what is this I was just checking the spelling of 'required'mandatory
// This is an async method
try
{
    // Pre-Requisite: Cache is already connected
    // Item is already added in the cache
    // Specify the  key of the item
    var key = "Product:1001";
    //Create a new LockHandle
    var lockHandle = new ncache.LockHandle();
    // Specify time span of 10 seconds for which the item remains locked
    var lockSpan = new ncache.TimeSpan(0, 0, 10);
    // Lock the item for a time span of 10 seconds
    var lockAcquired = await this.cache.lock(key, lockSpan, lockHandle);
    // Verify if the item is locked successfully
    if (lockAcquired == true)
    {
        // Item has been successfully locked
    }
    else
    {
        // Key does not exist
        // Item is already locked with a different LockHandle
        //manadator
    }
}
catch (error)
{
    // Handle errors
}Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us
