A simple Java library for interacting with MongoDB and Redis, using an annotation-driven approach for ease of use.
- Annotation-driven mapping for POJOs (
@Document,@Id,@Field,@Transient,@Indexed). - Automatic handling of POJO serialization and deserialization.
- A simple
Mongoclass for managing the connection and accessing collections. - Automatic index creation based on the
@Indexedannotation.
- Annotation-driven publish/subscribe messaging (
@RedisListener,@RedisSender). - Typed packet system for sending and receiving Java objects.
- A simple
Redisclass for managing the connection, publishing messages, and registering listeners.
This project is available on GitHub Packages. To use it in your Maven project, add the following to your pom.xml:
<repositories>
<repository>
<id>github</id>
<url>https://maven.pkg.github.com/CatMC-Network</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>club.catmc.utils.storage</groupId>
<artifactId>storage</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
</dependencies>See the wiki for detailed documentation and usage examples.