WAS v8.5 > Reference > Commands (wsadmin scripting)

DynamicCache command group for AdminTask

We can use the Jython scripting language to manage the dynamic cache service. Use the commands in the DynamicCache command group to create object and service cache instances with wsadmin.

Use the following commands to manage your dynamic cache configuration:


createObjectCacheInstance

The createObjectCacheInstance command creates an object cache instance in your configuration. An object cache is a location where the dynamic cache stores, distributes, and shares data.

Target object

Specify the instance of the cache provider the system stores the object cache instance objects under.

Required parameters

-name

Name of the object cache instance to create. (String, required)

-jndiName

Specifies the JNDI name for the object cache instance to create. (String, required)

Return value

The command does not return output.

Batch mode example usage

Interactive mode example usage


createServletCacheInstance

The createServletCacheInstance command creates a servlet cache instance in your configuration. A servlet cache instance specifies the location where the dynamic cache stores, distributes, and shares data.

Target object

Specify the instance of the cache provider the system stores the object cache instance objects under.

Required parameters

-name

Name of the servlet cache instance to create. (String, required)

-jndiName

Specifies the JNDI name for the servlet cache instance to create. (String, required)

Return value

The command does not return output.

Batch mode example usage

Interactive mode example usage


Related


Use the DistributedMap and DistributedObjectCache interfaces for the dynamic cache
Use object cache instances


Reference:

Servlet cache instance settings
Object cache instance settings


+

Search Tips   |   Advanced Search