implemented memcached client with Netty
All checks were successful
CI / build (push) Successful in 1m46s

This commit is contained in:
2025-02-04 21:56:41 +08:00
parent 89153b60f8
commit 6c62ac85c0
53 changed files with 590 additions and 293 deletions

View File

@@ -1,6 +1,7 @@
module net.woggioni.gbcs.api {
requires static lombok;
requires java.xml;
requires io.netty.buffer;
exports net.woggioni.gbcs.api;
exports net.woggioni.gbcs.api.exception;
}

View File

@@ -1,12 +1,14 @@
package net.woggioni.gbcs.api;
import io.netty.buffer.ByteBuf;
import net.woggioni.gbcs.api.exception.ContentTooLargeException;
import java.nio.channels.ReadableByteChannel;
import java.util.concurrent.CompletableFuture;
public interface Cache extends AutoCloseable {
ReadableByteChannel get(String key);
CompletableFuture<ReadableByteChannel> get(String key);
void put(String key, byte[] content) throws ContentTooLargeException;
CompletableFuture<Void> put(String key, ByteBuf content) throws ContentTooLargeException;
}

View File

@@ -56,7 +56,8 @@ public class Configuration {
@EqualsAndHashCode.Include
String name;
Set<Role> roles;
Quota quota;
Quota groupQuota;
Quota userQuota;
}
@Value