Python Client-side Prerequisites
The NCache Python Client SDK require the following prerequisites. Essentially, it requires developers to ensure that applications are correctly configured to interact with the NCache data through the ncache-client ecosystem. By implementing these prerequisites, developers can use the Dynamic Data Structures, SQL-like querying, and Pub/Sub messaging NCache offers while ensuring strict Serialization Integrity across distributed Linux and Windows environments.
Prerequisites
- Install the following packages in your Python client application:
- Enterprise: ncache-client
- Import the following packages in your application:
- from ncache.client import*
- from ncache.runtime import*
- The cache must be running.
- Make sure that the data being added is serializable.
- To ensure the operation is fail safe, it is recommended to handle any potential exceptions within your application, as explained in Handling Failures.
- To handle any unseen exceptions, refer to the Troubleshooting section.
Feature Specific Namespaces
Aside from the namespaces employed in most features, you should add the following namespaces/packages/classes in your Python client application based on the feature/API you intend to use.
Note
Any feature not mentioned in the list below either does not work with the specified feature or only requires the general namespaces/packages/classes.
- For Tags, Named Tags, Locking, Expirations:
- For Cache Data Dependencies, e.g., KeyDependency, FileDependency, and Database Dependencies: [Deprecated]
- For SQL Queries:
- For Cache Data Dependencies, e.g., KeyDependency, FileDependency, and Database Dependencies: [Deprecated]
- For Event Notifications
- For Pub/Sub: