-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reorganized for better package hierarchy
- Loading branch information
Showing
17 changed files
with
369 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
src/main/java/com/sangupta/dryredis/cache/DryRedisGeoOperations.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package com.sangupta.dryredis.cache; | ||
|
||
import java.util.List; | ||
|
||
import com.sangupta.dryredis.support.DryRedisGeoUnit; | ||
|
||
public interface DryRedisGeoOperations { | ||
|
||
public void geoadd(String key, double latitude, double longitude, String member); | ||
|
||
public String geohash(String key, String member); | ||
|
||
public double[] geopos(String key, String member); | ||
|
||
public Double geodist(String key, String member1, String member2, DryRedisGeoUnit unit); | ||
|
||
public List<String> georadius(String key, double latitude, double longitude, double radius, DryRedisGeoUnit unit); | ||
|
||
public List<String> georadius(String key, double latitude, double longitude, double radius, DryRedisGeoUnit unit, boolean withCoordinates, boolean withDistance, boolean withHash, int count); | ||
|
||
public List<String> georadiusbymember(String key, String member, double radius, DryRedisGeoUnit unit); | ||
|
||
public List<String> georadiusbymember(String key, String member, double radius, DryRedisGeoUnit unit, boolean withCoordinates, boolean withDistance, boolean withHash, int count); | ||
|
||
} |
38 changes: 38 additions & 0 deletions
38
src/main/java/com/sangupta/dryredis/cache/DryRedisHashOperations.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package com.sangupta.dryredis.cache; | ||
|
||
import java.util.List; | ||
import java.util.Map; | ||
|
||
public interface DryRedisHashOperations { | ||
|
||
public int hdel(String key, String field); | ||
|
||
public int hdel(String key, List<String> fields); | ||
|
||
public int hexists(String key, String field); | ||
|
||
public Object hget(String key, String field); | ||
|
||
public List<String> hgetall(String key); | ||
|
||
public List<String> hkeys(String key); | ||
|
||
public int hlen(String key); | ||
|
||
public int hset(String key, String field, String value); | ||
|
||
public int hsetnx(String key, String field, String value); | ||
|
||
public int hstrlen(String key, String field); | ||
|
||
public List<String> hvals(String key); | ||
|
||
public long hincrby(String key, String field, long increment); | ||
|
||
public double hincrbyfloat(String key, String field, double increment); | ||
|
||
public List<String> hmget(String key, List<String> fields); | ||
|
||
public String hmset(String key, Map<String, String> fieldValues); | ||
|
||
} |
44 changes: 44 additions & 0 deletions
44
src/main/java/com/sangupta/dryredis/cache/DryRedisStringOperations.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
package com.sangupta.dryredis.cache; | ||
|
||
import java.util.Collection; | ||
import java.util.List; | ||
|
||
public interface DryRedisStringOperations { | ||
|
||
int append(String key, String value); | ||
|
||
long incr(String key); | ||
|
||
long incrby(String key, long delta); | ||
|
||
double incrbyfloat(String key, double delta); | ||
|
||
List<String> mget(String[] keys); | ||
|
||
List<String> mget(Collection<String> keys); | ||
|
||
String set(String key, String value); | ||
|
||
String setnx(String key, String value); | ||
|
||
String setxx(String key, String value); | ||
|
||
String getrange(String key, int start, int end); | ||
|
||
int setrange(String key, int offset, String value); | ||
|
||
long bitcount(String key); | ||
|
||
long bitcount(String key, int start, int end); | ||
|
||
long decr(String key); | ||
|
||
long decrby(String key, long delta); | ||
|
||
String get(String key); | ||
|
||
int strlen(String key); | ||
|
||
String getset(String key, String value); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.