Derrick J. Wippler
82209d3632
Merge pull request #3 from mailgun/thrawn/develop
...
PIP-407: Added support for key removal within a group
2019-05-15 13:21:10 -05:00
Derrick J. Wippler
4f7e5ecf8c
Added support for key removal within a group
2019-04-11 10:50:29 -05:00
Derrick J. Wippler
d6e54d2323
Merge pull request #2 from mailgun/thrawn/develop
...
Changed import path to mailgun/groupcache
2019-04-10 15:10:02 -05:00
Derrick J. Wippler
a4f69dc48c
Changed import path to mailgun/groupcache
2019-04-10 15:09:20 -05:00
Derrick J. Wippler
1ee6a96d83
Update go.mod
2019-04-10 15:05:45 -05:00
Derrick J. Wippler
b9520c6403
Merge pull request #1 from mailgun/add-ttl
...
PIP-405: Sinks can now accept an expire time
2019-04-10 15:03:41 -05:00
Derrick J. Wippler
e72846e064
Added support for go modules
2019-04-09 17:36:47 -05:00
Derrick J. Wippler
ce8fe99325
Sinks can not accept an expire time
2019-04-09 17:36:03 -05:00
Sean Chen
5b532d6fd5
lru: fix misspelling ( #112 )
2019-01-29 07:46:38 -08:00
Brad Fitzpatrick
c65c006176
Merge pull request #107 from HaraldNordgren/master
...
Bump Travis versions
2018-10-24 16:09:25 -07:00
Harald Nordgren
d7bca77b06
Bump Travis versions
2018-10-20 01:13:27 +02:00
Brad Fitzpatrick
6f2cf27854
Merge pull request #105 from Daniel-B-Smith/patch-1
...
Fix typo in test name.
2018-09-24 21:05:50 +02:00
Daniel Smith
3fbe15d760
Fix typo in test name.
2018-09-24 14:43:12 -04:00
Brad Fitzpatrick
24b0969c4c
Merge pull request #98 from kevinburke/travis
...
Add travis.yml
2018-05-12 21:43:58 -07:00
Kevin Burke
fbb51cdece
Add travis.yml
...
This will run automated tests against PR's for the groupcache library.
2018-05-12 17:39:11 -07:00
Brad Fitzpatrick
66deaeb636
Merge pull request #88 from EdwardBetts/spelling
...
correct spelling mistake
2018-02-03 06:35:32 -08:00
Brad Fitzpatrick
84a468cf14
Merge pull request #90 from lorneli/lru-dev
...
lru: add evict test
2017-11-01 15:31:31 -05:00
lorneli
5c411b28ac
lru: add evict test
...
Test evict cached keys in least-recently-used way.
2017-10-31 22:07:28 +08:00
Edward Betts
a20b11a752
correct spelling mistake
2017-09-01 12:37:39 +01:00
Brad Fitzpatrick
b710c8433b
Merge pull request #80 from luciferous/writeto
...
Implement WriterTo
2017-04-20 20:56:42 -04:00
Neuman Vong
f81960bea5
Implement WriterTo
...
Avoids allocation/copy when writing byteview to a writer.
2017-03-02 14:33:40 -08:00
Brad Fitzpatrick
72d04f9fcd
Merge pull request #78 from elimisteve/patch-2
...
http.go: Added missing word from NewHTTPPool docs
2017-01-09 12:54:48 -08:00
Steve Phillips
361310ca19
http.go: Added missing word from NewHTTPPool docs
2017-01-09 12:49:55 -08:00
Brad Fitzpatrick
6159c0a623
Merge pull request #76 from dakerfp/patch-1
...
Add Clear methods to lru cache
2017-01-04 12:20:46 -08:00
Daker Fernandes Pinheiro
80d38305e5
Add Clear methods to lru cache
2016-12-23 14:46:26 -03:00
Brad Fitzpatrick
d092608c06
Align Group.Stats properly for 32-bit platforms.
...
Fixes golang/go#18334
2016-12-16 00:27:18 +00:00
Brad Fitzpatrick
a6b377e340
Merge pull request #70 from skyportsystems/perGroupPeerPicker4.1
...
portPicker function now takes group name
2016-08-03 13:04:08 -07:00
Matthew Denton
b3c0d093a3
portPicker function now takes group name, RegisterPerGroupPeerPicker added to set this function
2016-08-03 12:39:10 -07:00
Brad Fitzpatrick
02826c3e79
Merge pull request #65 from shawnps/patch-2
...
fix typos
2016-05-15 17:07:52 -07:00
Shawn Smith
bf5f336156
fix typos
2016-05-15 16:45:38 +09:00
Brad Fitzpatrick
4eab30f13d
testpb: add syntax declaration to proto file
...
Required for Google's internal build system.
2016-02-11 14:59:07 -08:00
Brad Fitzpatrick
7e022f85f5
groupcachepb: add syntax declaration to proto file
...
Required for Google's internal build system.
Change-Id: I7cc7b1ffab9f4405715eeb675df3bf3bea85f107
2016-02-11 14:40:41 -08:00
Andrew Gerrand
42b67f4f14
Merge pull request #63 from pierrre/master
...
use passed options
2016-02-08 20:49:24 +11:00
Pierre Durand
8cc54b43f8
use passed options
2016-02-08 09:57:03 +01:00
Tipp Moseley
d995f8a668
Fixes a concurrency error in groupcache. Previously, multiple Get
...
requests could simultaneously result in a load(). Only requests that
enter singleflight Do concurrently would be deduped, so it was possible for
populateCache to be called multiple times for the same key. That
would result in overcounting nbytes, and eventually leading to a
livelock where nbytes > cacheBytes, but there were no entries in the
cache.
Change-Id: I5b304ce82041c1310c31b662486744e86509cc53
2016-01-27 11:33:35 -08:00
Brad Fitzpatrick
604ed57851
Merge pull request #41 from shawnps/patch-1
...
fix wrong number of args for format in Errorf call
2015-01-25 10:08:32 -08:00
Shawn Smith
c6017b7e87
fix wrong number of args for format in Errorf call
2015-01-25 16:07:57 +09:00
Brad Fitzpatrick
86ced4a883
Merge pull request #28 from ryanslade/reduce-allocations
...
Reduce allocations
2014-12-23 10:22:21 -08:00
Ryan Slade
505a8b21f5
Reduce allocations
...
Store temporary buffers in a sync.Pool.
Create one httpGetter per peer when Set() is called so we don't
allocate a new one on each call PickPeer().
2014-12-16 08:18:07 +00:00
Andrew Gerrand
f391194b96
Merge pull request #40 from ukai/protobuf
...
goprotobuf has moved to GitHub
2014-11-25 16:26:21 +11:00
Fumitoshi Ukai
5fb127ef79
goprotobuf has moved to GitHub
...
code.google.com/p/goprotobuf to github.com/golang/groupcache
2014-11-25 13:24:33 +09:00
Andrew Gerrand
d2a1805917
Merge pull request #33 from fumin/master
...
allow all options of HTTPPool to be specified by users
2014-10-20 20:15:39 +11:00
awaw fumin
1568598a4f
allow all options of HTTPPool to be specified by users
2014-10-20 14:40:48 +08:00
Andrew Gerrand
8b25adc0f6
Merge pull request #30 from EverythingMe/fix_replicas
...
changed default number of replicas in http pool hash ring to 50
2014-07-09 07:38:46 +10:00
Dvir Volk
21fc61ac51
changed default number of replicas in http pool hash ring to 50, and fixed hash ring benchmark
2014-07-08 12:15:05 +03:00
Andrew Gerrand
0ba15ac99c
Merge pull request #27 from EverythingMe/remove_extra_unescaping
...
removed extra url-unescaping in http pool
2014-07-07 13:45:50 +10:00
Brad Fitzpatrick
a531d51b7f
Merge pull request #26 from dgryski/consistenthash-binary-search
...
consistenthash: replace linear search with binary search
2014-07-02 13:37:02 -07:00
Dvir Volk
976d66a1f1
removed extra unesacping in http pool that screwed up the keys we were using
2014-06-18 23:00:46 +03:00
Damian Gryski
89ec0544ae
consistenthash: replace linear search with binary search
...
The binary search quickly out-paces the linear search, even for a small
number of shards and replicas.
benchmark old ns/op new ns/op delta
BenchmarkGet8 122 122 +0.00%
BenchmarkGet32 471 137 -70.91%
BenchmarkGet128 5619 254 -95.48%
BenchmarkGet512 90302 406 -99.55%
2014-06-17 17:09:50 +02:00
Brad Fitzpatrick
d781998583
Merge pull request #16 from Obvious/dpup-serverrequests
...
HTTPPool increments Group.Stats.ServerRequests
2013-10-30 09:55:26 -07:00