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

Configuring Read-Through Provider

Note

This feature is only available in NCache Enterprise Edition.

Read-Through provider can be configured in following ways:

Important

For Java, before deploying your JAR files, you need to make sure that:

  • You have JDK 11 LTS installed
  • Your Environment Variable for Java is set

Using NCache Web Manager

Note

Java based providers can also be configured using NCache Web Manager.

  • Launch NCache Web Manager by browsing to http://localhost:8251 or <server-ip>:8251 on Windows and Linux.

  • In the left navigation bar, click on Clustered Caches or Local Caches, based on the cache to which backing source will be configured. Against the cache name, click on View Details.

Note

Make sure that the cache is stopped.

Configure Read Through Web

  • This opens up the detailed configuration page for the cache. Go to the Advanced Settings tab and click on Backing Source in the left bar.

  • Check the Enable Read Through box. Select + Add Provider.

Configure Read Through Web

  • A new page will open up. Enter the Provider Name in the text box and then click on the ... button to browse for assembly implementing IReadThruProvider interface. Select the class name from the drop down list.

Configure Read Through Provider Name

  • Select the required Read-Through provider. You can also provide the values to your read-through provider class, if required. Just write the parameter name in Parameter field and its value against it under the Value field.

Configure Read Through Parameters

  • Click OK.

  • Selected provider class will be listed in Read-Through provider list at Backing Source tab.

Read Through Providers List

  • Now deploy the read-through provider assembly along with its dependent assemblies, if any. Click on the Deploy Backing Source Provider button at the left bottom of the Backing Source tab.

  • Browse for required assemblies.

  • Select all the required assemblies and click Open.

Read Through Providers List

  • After applying all the changes click on Save Changes.

Using PowerShell

Configure Read-Through

Add-BackingSource cmdlet enable users to configure backing source (read-through, write-through) providers for the specified cache.

The following command will configure Reader1 read-through provider on demoClusteredCache.

Add-BackingSource demoClusteredCache AssemblyName C:\Providers\Providers.dll -Class
  NCache.Sample.Providers.Readers.Reader1 -ProviderName reader1 -ReadThru

The following command will configure Reader2 read-through provider on clusteredCache using the executable jar.

Add-BackingSource clusteredCache AssemblyName C:\Jars\BackinSourceProviders-1.0.jar -Class
  NCache.Sample.Providers.Readers.Reader2 -ProviderName reader2 -ReadThru

Remove Read-Through

Remove-BackingSource cmdlet removes the pre-configured backing source providers (read-through or write-through) from the cache or a specified server.

The following command removes the pre-configured read-through provider named MyReader from demoClusteredCache.

Remove-BackingSource -CacheName demoClusteredCache -ProviderName MyReader –ReadThru

See Also

Write-Through Provider
Write-Through Provider for Write-Behind Operations
Deploy Providers
Add Test Data

Back to top Copyright © 2017 Alachisoft