Step 1: Configure the Cache
To use JSP Sessions in your application, follow the steps mentioned below. You can either choose to create a Local Cache that resides only on your computer or a Clustered Cache involving multiple computers. For now, we'll create a clustered cache.
-
Launch NCache Manager from Start->Programs->NCache->NCache Manager.
-
Create a new project.
-
-
Cluster Name: myQSReplicatedCache
-
Cluster Type: Replicated
-
Operation Timeout: 60 sec's (default)
-
Statistics Replication Interval: 600 sec (default)
-
Member Nodes: At least one node
-
Cluster Port: Any available port
-
Maximum Size: 250MB (default)
-
Eviction: Priority Based (default)
-
Default Priority: Normal
-
Eviction Percentage: 5 (default) (In case of sessions, we recommend to turn off eviction)
-
Clean Interval (sec's.): 15 (default)
-
-
Verify that cluster is running. For this, determine cache behavior by adding and removing objects from Statistics Window.
-
See Also