Skip to content

Commit 891169f

Browse files
committed
bugfix: make sure keyExists method works for counters
1 parent 486cd39 commit 891169f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/com/danga/MemCached/MemCachedClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ public void setCompressThreshold( long compressThreshold ) {
282282
* @return true if key found in cache, false if not (or if cache is down)
283283
*/
284284
public boolean keyExists( String key ) {
285-
return ( this.get( key ) != null );
285+
return ( this.get( key, null, true ) != null );
286286
}
287287

288288
/**

0 commit comments

Comments
 (0)