Skip to content

Commit

Permalink
Merge branch 'master' of github.com:mperham/dalli
Browse files Browse the repository at this point in the history
  • Loading branch information
mperham committed Mar 4, 2013
2 parents 5a194c4 + 5684a60 commit 263ff70
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ Configuration
------------------------
Dalli::Client accepts the following options. All times are in seconds.

**expires_in**: Global default for key TTL. No default.
**expires_in**: Global default for key TTL. Default is 0, which means no expiry.

**failover**: Boolean, if true Dalli will failover to another server if the main server for a key is down.

Expand Down
6 changes: 3 additions & 3 deletions lib/dalli/ring.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ def entry_count_for(server, total_servers, total_weight)
inline do |builder|
builder.c <<-EOM
int binary_search(VALUE ary, unsigned int r) {
int upper = RARRAY_LEN(ary) - 1;
int lower = 0;
int idx = 0;
long upper = RARRAY_LEN(ary) - 1;
long lower = 0;
long idx = 0;
ID value = rb_intern("value");
VALUE continuumValue;
unsigned int l;
Expand Down

0 comments on commit 263ff70

Please sign in to comment.