Skip to content

Latest commit

 

History

History
31 lines (18 loc) · 881 Bytes

File metadata and controls

31 lines (18 loc) · 881 Bytes

Caching Samples

This folder contains a samples in form of stand-alone snippets that demonstrate useful scenarios.

Prerequiites

Ensure the following setup is in place.

Java

You must have java installed locally on your machinee. Run java --version to check if this is available.

MemoryStore for Valkey Instance

A working instance of memorystore for valkey must be available. You can run the Valkey CLI for a local instance, or create an instance through the GCP Platform.

Running the sample code

Each example contains instructions on any prerequiite configuration.

Compile the app through Maven (optional)

mvn compile

Run the sample code

mvn exec:java -Dexec.mainClass=MemorystoreTTLItem //Replace the main class as needed