Method Open
Open(String, String)
Creates and returns an NCache Directory, an implementation of BaseDirectory, which can be used for index writing and reading
Declaration
public static NCacheDirectory Open(string cacheName, string indexName)
Parameters
Type | Name | Description |
---|---|---|
System.String | cacheName | NCache cache id which is configured and is supposed to be used for Lucene Module |
System.String | indexName | Unique index id by which NCache recognizes an index, this should be unique for each cache id |
Returns
Type | Description |
---|---|
NCacheDirectory |
Open(String, String, LockFactory)
Just like
Declaration
public static NCacheDirectory Open(string cacheName, string indexName, LockFactory lockFactory)
Parameters
Type | Name | Description |
---|---|---|
System.String | cacheName | |
System.String | indexName | |
LockFactory | lockFactory |
Returns
Type | Description |
---|---|
NCacheDirectory |