command
Version:
v1.3.0
Opens a new window with list of versions in this module.
Published: Nov 4, 2025
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Hazelcast Cache Example
This example demonstrates how to use Hazelcast as a cache backend for httpcache.
Prerequisites
- Hazelcast server running on localhost:5701
Running the Example
First, start a Hazelcast server:
docker run -p 5701:5701 hazelcast/hazelcast:5.5
Then run the example:
go run main.go
What This Example Does
- Connects to a local Hazelcast server
- Creates a distributed map for caching
- Makes HTTP requests through the cache
- Demonstrates cache hits on subsequent requests
Configuration
The example connects to Hazelcast at localhost:5701. You can modify this in the code if your Hazelcast server is running elsewhere.
Features
- Distributed caching: Share cache across multiple application instances
- In-memory performance: Fast access to cached data
- Scalability: Hazelcast automatically distributes data across cluster nodes
- High availability: Data is replicated for fault tolerance
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.