Skip to content

Commit

Permalink
refactor cache framework
Browse files Browse the repository at this point in the history
  • Loading branch information
ipipman committed Jun 30, 2024
1 parent 30c2f83 commit 516235e
Show file tree
Hide file tree
Showing 79 changed files with 516 additions and 326 deletions.
22 changes: 1 addition & 21 deletions .flattened-pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<groupId>io.github.ipipman</groupId>
<artifactId>cache-man</artifactId>
<version>0.0.1</version>
<packaging>pom</packaging>
<name>cache-man</name>
<description>cache-man</description>
<url>https://github.com/ipipman/cache-man</url>
Expand All @@ -31,25 +32,4 @@
<system>github</system>
<url>https://github.com/ipipman/cache-man/issues</url>
</issueManagement>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
<version>3.3.0</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-all</artifactId>
<version>4.1.104.Final</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.32</version>
<scope>compile</scope>
<optional>true</optional>
</dependency>
</dependencies>
</project>
43 changes: 43 additions & 0 deletions cache-core/.flattened-pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>cn.ipman</groupId>
<artifactId>cache-core</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>cache-core</name>
<description>cache-core</description>
<url>https://github.com/ipipman/cache-man/cache-core</url>
<licenses>
<license>
<name>The Apache Software License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<developers>
<developer>
<name>ipman</name>
<email>[email protected]</email>
<url>https://github.com/ipipman</url>
</developer>
</developers>
<scm>
<connection>scm:git:https://github.com/ipipman/cache-man.git/cache-core</connection>
<developerConnection>scm:git:https://github.com/ipipman/cache-man.git/cache-core</developerConnection>
<url>https://github.com/ipipman/cache-man/cache-core</url>
</scm>
<issueManagement>
<system>github</system>
<url>https://github.com/ipipman/cache-man/issues</url>
</issueManagement>
<dependencies>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.32</version>
<scope>compile</scope>
<optional>true</optional>
</dependency>
</dependencies>
</project>
27 changes: 27 additions & 0 deletions cache-core/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>io.github.ipipman</groupId>
<artifactId>cache-man</artifactId>
<version>0.0.1</version>
<relativePath>../pom.xml</relativePath>
</parent>

<groupId>cn.ipman</groupId>
<artifactId>cache-core</artifactId>
<version>0.0.1-SNAPSHOT</version>

<name>cache-core</name>
<description>cache-core</description>

<dependencies>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<optional>true</optional>
</dependency>
</dependencies>

</project>
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
package cn.ipman.cache.command;
package cn.ipman.cache.core.command;

import cn.ipman.cache.core.IMCache;
import cn.ipman.cache.core.Reply;

import cn.ipman.cache.core.core.IMCache;
import cn.ipman.cache.core.core.Reply;

public interface Command {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package cn.ipman.cache.command;

import cn.ipman.cache.command.common.*;
import cn.ipman.cache.command.hash.*;
import cn.ipman.cache.command.list.*;
import cn.ipman.cache.command.set.*;
import cn.ipman.cache.command.string.*;
import cn.ipman.cache.command.zset.*;
package cn.ipman.cache.core.command;

import cn.ipman.cache.core.command.common.*;
import cn.ipman.cache.core.command.hash.*;
import cn.ipman.cache.core.command.list.*;
import cn.ipman.cache.core.command.set.*;
import cn.ipman.cache.core.command.string.*;
import cn.ipman.cache.core.command.zset.*;

import java.util.LinkedHashMap;
import java.util.Map;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
package cn.ipman.cache.command.common;

import cn.ipman.cache.command.Command;
import cn.ipman.cache.core.IMCache;
import cn.ipman.cache.core.Reply;
package cn.ipman.cache.core.command.common;

import cn.ipman.cache.core.command.Command;
import cn.ipman.cache.core.core.IMCache;
import cn.ipman.cache.core.core.Reply;
/**
* Description for this class
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package cn.ipman.cache.command.common;
package cn.ipman.cache.core.command.common;

import cn.ipman.cache.command.Command;
import cn.ipman.cache.core.IMCache;
import cn.ipman.cache.core.Reply;
import cn.ipman.cache.core.command.Command;
import cn.ipman.cache.core.core.IMCache;
import cn.ipman.cache.core.core.Reply;

/**
* Description for this class
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package cn.ipman.cache.command.common;
package cn.ipman.cache.core.command.common;

import cn.ipman.cache.command.Command;
import cn.ipman.cache.core.IMCache;
import cn.ipman.cache.core.Reply;
import cn.ipman.cache.core.command.Command;
import cn.ipman.cache.core.core.IMCache;
import cn.ipman.cache.core.core.Reply;

/**
* Description for this class
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package cn.ipman.cache.command.common;
package cn.ipman.cache.core.command.common;

import cn.ipman.cache.command.Command;
import cn.ipman.cache.core.IMCache;
import cn.ipman.cache.core.Reply;
import cn.ipman.cache.core.command.Command;
import cn.ipman.cache.core.core.IMCache;
import cn.ipman.cache.core.core.Reply;

/**
* Description for this class
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package cn.ipman.cache.command.common;
package cn.ipman.cache.core.command.common;

import cn.ipman.cache.command.Command;
import cn.ipman.cache.core.IMCache;
import cn.ipman.cache.core.Reply;
import cn.ipman.cache.core.command.Command;
import cn.ipman.cache.core.core.IMCache;
import cn.ipman.cache.core.core.Reply;

/**
* Description for this class
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package cn.ipman.cache.command.common;
package cn.ipman.cache.core.command.common;

import cn.ipman.cache.command.Command;
import cn.ipman.cache.core.IMCache;
import cn.ipman.cache.core.Reply;
import cn.ipman.cache.core.command.Command;
import cn.ipman.cache.core.core.IMCache;
import cn.ipman.cache.core.core.Reply;

/**
* Description for this class
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package cn.ipman.cache.command.common;
package cn.ipman.cache.core.command.common;

import cn.ipman.cache.command.Command;
import cn.ipman.cache.core.IMCache;
import cn.ipman.cache.core.Reply;
import cn.ipman.cache.core.command.Command;
import cn.ipman.cache.core.core.IMCache;
import cn.ipman.cache.core.core.Reply;

/**
* Description for this class
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package cn.ipman.cache.command.hash;
package cn.ipman.cache.core.command.hash;

import cn.ipman.cache.command.Command;
import cn.ipman.cache.core.IMCache;
import cn.ipman.cache.core.Reply;
import cn.ipman.cache.core.command.Command;
import cn.ipman.cache.core.core.IMCache;
import cn.ipman.cache.core.core.Reply;

/**
* Description for this class
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package cn.ipman.cache.command.hash;
package cn.ipman.cache.core.command.hash;

import cn.ipman.cache.command.Command;
import cn.ipman.cache.core.IMCache;
import cn.ipman.cache.core.Reply;
import cn.ipman.cache.core.command.Command;
import cn.ipman.cache.core.core.IMCache;
import cn.ipman.cache.core.core.Reply;

/**
* Description for this class
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package cn.ipman.cache.command.hash;
package cn.ipman.cache.core.command.hash;

import cn.ipman.cache.command.Command;
import cn.ipman.cache.core.IMCache;
import cn.ipman.cache.core.Reply;
import cn.ipman.cache.core.command.Command;
import cn.ipman.cache.core.core.IMCache;
import cn.ipman.cache.core.core.Reply;

/**
* Description for this class
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package cn.ipman.cache.command.hash;
package cn.ipman.cache.core.command.hash;

import cn.ipman.cache.command.Command;
import cn.ipman.cache.core.IMCache;
import cn.ipman.cache.core.Reply;
import cn.ipman.cache.core.command.Command;
import cn.ipman.cache.core.core.IMCache;
import cn.ipman.cache.core.core.Reply;

/**
* Description for this class
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package cn.ipman.cache.command.hash;
package cn.ipman.cache.core.command.hash;

import cn.ipman.cache.command.Command;
import cn.ipman.cache.core.IMCache;
import cn.ipman.cache.core.Reply;
import cn.ipman.cache.core.command.Command;
import cn.ipman.cache.core.core.IMCache;
import cn.ipman.cache.core.core.Reply;

/**
* Description for this class
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package cn.ipman.cache.command.hash;
package cn.ipman.cache.core.command.hash;

import cn.ipman.cache.command.Command;
import cn.ipman.cache.core.IMCache;
import cn.ipman.cache.core.Reply;
import cn.ipman.cache.core.command.Command;
import cn.ipman.cache.core.core.IMCache;
import cn.ipman.cache.core.core.Reply;

/**
* Description for this class
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package cn.ipman.cache.command.hash;
package cn.ipman.cache.core.command.hash;

import cn.ipman.cache.command.Command;
import cn.ipman.cache.core.IMCache;
import cn.ipman.cache.core.Reply;
import cn.ipman.cache.core.command.Command;
import cn.ipman.cache.core.core.IMCache;
import cn.ipman.cache.core.core.Reply;

/**
* Description for this class
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package cn.ipman.cache.command.list;
package cn.ipman.cache.core.command.list;

import cn.ipman.cache.command.Command;
import cn.ipman.cache.core.IMCache;
import cn.ipman.cache.core.Reply;
import cn.ipman.cache.core.command.Command;
import cn.ipman.cache.core.core.IMCache;
import cn.ipman.cache.core.core.Reply;

/**
* Description for this class
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package cn.ipman.cache.command.list;
package cn.ipman.cache.core.command.list;

import cn.ipman.cache.command.Command;
import cn.ipman.cache.core.IMCache;
import cn.ipman.cache.core.Reply;
import cn.ipman.cache.core.command.Command;
import cn.ipman.cache.core.core.IMCache;
import cn.ipman.cache.core.core.Reply;

/**
* Description for this class
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package cn.ipman.cache.command.list;
package cn.ipman.cache.core.command.list;

import cn.ipman.cache.command.Command;
import cn.ipman.cache.core.IMCache;
import cn.ipman.cache.core.Reply;
import cn.ipman.cache.core.command.Command;
import cn.ipman.cache.core.core.IMCache;
import cn.ipman.cache.core.core.Reply;

/**
* Description for this class
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package cn.ipman.cache.command.list;
package cn.ipman.cache.core.command.list;

import cn.ipman.cache.command.Command;
import cn.ipman.cache.core.IMCache;
import cn.ipman.cache.core.Reply;
import cn.ipman.cache.core.command.Command;
import cn.ipman.cache.core.core.IMCache;
import cn.ipman.cache.core.core.Reply;

/**
* Description for this class
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package cn.ipman.cache.command.list;
package cn.ipman.cache.core.command.list;

import cn.ipman.cache.command.Command;
import cn.ipman.cache.core.IMCache;
import cn.ipman.cache.core.Reply;
import cn.ipman.cache.core.command.Command;
import cn.ipman.cache.core.core.IMCache;
import cn.ipman.cache.core.core.Reply;

/**
* Description for this class
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package cn.ipman.cache.command.list;
package cn.ipman.cache.core.command.list;

import cn.ipman.cache.command.Command;
import cn.ipman.cache.core.IMCache;
import cn.ipman.cache.core.Reply;
import cn.ipman.cache.core.command.Command;
import cn.ipman.cache.core.core.IMCache;
import cn.ipman.cache.core.core.Reply;

/**
* Description for this class
Expand Down
Loading

0 comments on commit 516235e

Please sign in to comment.