Skip to content

Commit

Permalink
redis
Browse files Browse the repository at this point in the history
  • Loading branch information
Angeschossen committed Apr 15, 2024
1 parent 1c2d53c commit a940e59
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ java {
}

group = "com.github.angeschossen"
version = "1.0.19"
version = "1.0.20"
description = "PluginFrameworkAPI"
java.sourceCompatibility = JavaVersion.VERSION_1_8

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
package com.github.angeschossen.pluginframework.api.holder;

import org.jetbrains.annotations.NotNull;

import java.util.concurrent.CompletableFuture;

public interface ChangeSaveable {
public interface ChangeSaveable extends Changeable{
long getLastChangeSave();

CompletableFuture<Void> save();
Expand All @@ -13,9 +15,7 @@ public interface ChangeSaveable {

boolean exists();

void setUserInteractionChange();

void setSaveChange(boolean publishRedisImmediately);
void setSaveChange();

boolean hasSaveChange();

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package com.github.angeschossen.pluginframework.api.holder;

import org.jetbrains.annotations.NotNull;

import java.util.concurrent.CompletableFuture;

public interface Changeable {

@NotNull
CompletableFuture<Void> saveAndPublishToRedis();
}

0 comments on commit a940e59

Please sign in to comment.