• Webinars
  • Docs
  • Download
  • Blogs
  • Contact Us
Try Free
Show / Hide Table of Contents

Method Exists

Exists()

Checks, if the required key for Entry Processor exists in cache or not.

Declaration
bool Exists()
Returns
Type Description
System.Boolean

Returns true, if key exists or vice versa.

Examples

Example returns string based on existence of entry to be processed in cache

if (entry.Exists())
{
    return "Key exists.";
}
else
{
    return "Key does not exist.";
}
Back to top Copyright © 2017 Alachisoft