Permalink
Browse files

support for ltrim command

  • Loading branch information...
1 parent a850313 commit 3afee10122351db457070dcdadf51c9e4184df06 @gorsuch gorsuch committed Dec 13, 2011
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/clj_redis/client.clj
@@ -157,6 +157,9 @@
[p k ^Integer start ^Integer end]
(lease p (fn [^Jedis j] (seq (.lrange j k start end)))))
+(defn ltrim
+ [p k ^Integer start ^Integer end]
+ (lease p (fn [^Jedis j] (.ltrim j k start end))))
; Sets

0 comments on commit 3afee10

Please sign in to comment.