Skip to content

Commit 41d9a9b

Browse files
author
virtualWinter
committed
Add README.md
1 parent 798ba93 commit 41d9a9b

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

README.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Storage Library
2+
3+
A simple Java library for interacting with MongoDB and Redis, using an annotation-driven approach for ease of use.
4+
5+
## Features
6+
7+
### MongoDB
8+
- Annotation-driven mapping for POJOs (`@Document`, `@Id`, `@Field`, `@Transient`, `@Indexed`).
9+
- Automatic handling of POJO serialization and deserialization.
10+
- A simple `Mongo` class for managing the connection and accessing collections.
11+
- Automatic index creation based on the `@Indexed` annotation.
12+
13+
### Redis
14+
- Annotation-driven publish/subscribe messaging (`@RedisListener`, `@RedisSender`).
15+
- Typed packet system for sending and receiving Java objects.
16+
- A simple `Redis` class for managing the connection, publishing messages, and registering listeners.
17+
18+
## Installation
19+
20+
This project is available on GitHub Packages. To use it in your Maven project, add the following to your `pom.xml`:
21+
22+
```xml
23+
<repositories>
24+
<repository>
25+
<id>github</id>
26+
<url>https://maven.pkg.github.com/CatMC-Network</url>
27+
</repository>
28+
</repositories>
29+
30+
<dependencies>
31+
<dependency>
32+
<groupId>club.catmc.utils.storage</groupId>
33+
<artifactId>storage</artifactId>
34+
<version>1.0-SNAPSHOT</version>
35+
</dependency>
36+
</dependencies>
37+
```
38+
39+
## Usage
40+
41+
See the [wiki](https://github.com/CatMC-Network/storage/wiki) for detailed documentation and usage examples.

0 commit comments

Comments
 (0)