Interface ISearchService
This interface contains properties and methods required for Search Service.
Namespace:
Assembly: Alachisoft.NCache.Client.dll
Syntax
public interface ISearchService
Methods
Name | Description |
---|---|
ExecuteNonQuery(QueryCommand) | Executes Delete statements on cache. Returns number of affected rows after query is executed. |
ExecuteReader(QueryCommand, Boolean, Int32) | Performs search on the cache based on the query specified. Returns list of key-value pairs in a data reader which fulfills the query criteria. This key-value pair has cache key and its respective value. You can specify the flag for specifying if you want data with keys. |
ExecuteScalar(QueryCommand) | Executes the query, and returns the first column of the first row in the result set returned by the query. Additional columns or rows are ignored. |
GetByTag<T>(Tag) | Gets all the cached items with the specified tag. |
GetByTag<T>(String) | Gets all the cached objects with the wild card supported tag. |
GetByTags<T>(IEnumerable<Tag>, TagSearchOptions) | Returns the cached objects that have tags with specified TagSearchOptions. |
GetGroupData<T>(String) | Retrieves the key and value pairs of the specified group. |
GetGroupKeys(String) | Retrieves the keys of the items in the specified group. |
GetKeysByTag(Tag) | Gets all keys of the objects with the specified tag. |
GetKeysByTag(String) | Gets all the keys with the wild card supported tag. |
GetKeysByTags(IEnumerable<Tag>, TagSearchOptions) | Returns keys of the cached items that have tags with specified TagSearchOptions. |
RemoveByTag(Tag) | Removes the cached objects with the specified tag. |
RemoveByTags(IEnumerable<Tag>, TagSearchOptions) | Removes the cached objects that have tags with specified TagSearchOptions. |
RemoveGroupData(String) | Remove the data items pertaining to the specified group from cache. |