Skip to content

Commit

Permalink
maven
Browse files Browse the repository at this point in the history
  • Loading branch information
dongbin committed Nov 28, 2019
1 parent 7d17cc0 commit 76325cf
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 40 deletions.
43 changes: 43 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,49 @@
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.10.4</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<additionalparam>-Xdoclint:none</additionalparam>
</configuration>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>8</source>
<target>8</target>
</configuration>
</plugin>

<plugin>
<artifactId>maven-source-plugin</artifactId>
<configuration>
<attach>true</attach>
</configuration>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>


</plugins>
</build>
</profile>
Expand Down
27 changes: 1 addition & 26 deletions store/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,34 +11,9 @@

<artifactId>store</artifactId>
<version>0.1.2</version>
<name>${project.groupId}:${project.artifactId}</name>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>8</source>
<target>8</target>
</configuration>
</plugin>
<plugin>
<artifactId>maven-source-plugin</artifactId>
<configuration>
<attach>true</attach>
</configuration>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>

</plugins>
</build>

<dependencies>
<dependency>
Expand Down
4 changes: 1 addition & 3 deletions store/src/main/java/top/thinkin/lightd/base/Platform.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ public class Platform {

private static final boolean IS_WINDOWS = isWindows0();

/**
* Return {@code true} if the JVM is running on Windows
*/

public static boolean isWindows() {
return IS_WINDOWS;
}
Expand Down
8 changes: 1 addition & 7 deletions store/src/main/java/top/thinkin/lightd/db/RCollection.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ protected KeyIterator getKeyIterator(byte[] head) {

/**
* 删除,数据会被同步清除
*
* @param key
* @throws Exception
*/
abstract void delete(String key) throws Exception;
Expand All @@ -68,20 +68,14 @@ protected KeyIterator getKeyIterator(byte[] head) {

/**
* 获取过期时间戳(秒)
* @return
* @throws Exception
*/
abstract int getTtl(String key) throws Exception;
/**
* 删除过期时间
* @return
* @throws Exception
*/
abstract void delTtl(String key) throws Exception;
/**
* 设置新的过期时间戳(秒)
* @return
* @throws Exception
*/
abstract void ttl(String key, int ttl) throws Exception;

Expand Down
4 changes: 0 additions & 4 deletions store/src/main/java/top/thinkin/lightd/db/ZSet.java
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,6 @@ private void setEntry(byte[] key_b, MetaV metaV, Entry[] entrys) throws KitDBExc
/**
* 返回指定区间分数的成员
*
* @param start
* @param end
* @return
* @throws Exception
*/
public List<Entry> range(String key, long start, long end, int limit) throws KitDBException {
try (CloseLock ignored = checkClose()) {
Expand Down

0 comments on commit 76325cf

Please sign in to comment.