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

Method Remove

Remove(Object)

Removes the entity from the cache. Doesnt throw any exception if the entity does not exist. However entity should be a part of the database context or else the method will throw an exception.

Declaration
public void Remove(object entity)
Parameters
Type Name Description
System.Object entity

Entity that will be used to generate the Key for the cache item.

Remove(String)

Removes the item from the cache. Doesnt throw any exception if the item does not exist.

Declaration
public void Remove(string cacheKey)
Parameters
Type Name Description
System.String cacheKey

The key that will be used to remove the item from the cache.

Back to top Copyright © 2017 Alachisoft