Commit Graph

91 Commits

Author SHA1 Message Date
Derrick J. Wippler
ba255c644a
Merge pull request #13 from mailgun/thrawn/develop
Removed tabs from README example
2020-01-05 15:54:44 -06:00
Derrick J. Wippler
06245be9e2 Removed tabs from README example, github renders the tabs as 8 spaces each which is crazy 2020-01-05 15:54:31 -06:00
Derrick J. Wippler
ff2d1f161e
Update README.md 2019-06-10 15:35:07 -05:00
Derrick J. Wippler
e1f81f6bb1
Update README.md 2019-06-10 15:33:49 -05:00
Derrick J. Wippler
f90a77a9bb
Merge pull request #10 from mailgun/thrawn/develop
Get() now returns immediately when context is done
2019-06-10 15:26:13 -05:00
Derrick J. Wippler
48a0ce2463 Get() now returns immediately when context is done
* `Get()` now returns immediately when context is done during a groupcache peer
  conversation. Previously `Get()` would call the `Getter` with a done context.
2019-06-10 14:16:39 -05:00
Derrick J. Wippler
b9bcb40345
Removed Release Candidate from Changelog 2019-06-04 17:07:29 -05:00
Derrick J. Wippler
7a39b5a63a
Merge pull request #8 from mailgun/thrawn/develop
Release Candidate 2.0.0-rc.4
2019-06-04 15:02:42 -05:00
Derrick J. Wippler
76b3cd49b6 Reverted change to associate Transport to httpGetter.
This change caused a data race during async calls to groupcache.Get().
Also discovered `DefaultTransport` has per address connection pooling
only when the request was a success, which is sufficient for most use
cases.
2019-06-04 14:53:24 -05:00
Derrick J. Wippler
c2015034f2
Merge pull request #7 from mailgun/thrawn/develop
Fix HTTPPoolOptions.Transport
2019-06-04 10:46:59 -05:00
Derrick J. Wippler
2869a0ce28 HTTPPoolOptions.Transport is now used instead of DefaultTransport when provided 2019-06-04 10:02:19 -05:00
Derrick J. Wippler
554745c665
Merge pull request #6 from mailgun/thrawn/develop
Release Candidate RC2
2019-06-03 11:16:14 -05:00
Derrick J. Wippler
8b0de5a71a Changed module paths to reflect breaking change v2 2019-06-03 11:08:54 -05:00
Derrick J. Wippler
4b81d84061
Merge pull request #5 from mailgun/thrawn/develop
Release Candidate 2.0
2019-06-03 10:55:26 -05:00
Derrick J. Wippler
054f2178b4 Client keep-alives and hotcache changes
* Now Associating the transport with peer `httpGetter` so we take advantage of
  connection reuse.  This lowers the impact on DNS and improves preformance for
  high request volume low latency applications.
* Now always populating the hotcache. A more complex algorithm is unnecessary
  when the LRU cache will ensure the most used values remain in the cache. The
  evict code ensures the hotcache does not over crowd the maincache.
2019-06-03 10:20:40 -05:00
Derrick J. Wippler
9a873a72e5 Added a CHANGELOG file 2019-05-30 17:24:49 -05:00
Derrick J. Wippler
f352930de5 Now using context.Context instead of groupcache.Context 2019-05-30 17:03:06 -05:00
Derrick J. Wippler
a5eee224aa http requests now respect context.Context done 2019-05-30 16:47:38 -05:00
Derrick J. Wippler
9dade9087a
Merge pull request #4 from mailgun/thrawn/develop
Remove() now inits peers if needed
2019-05-23 15:17:25 -05:00
Derrick J. Wippler
2e501aa922 Remove() Now returns the body on non 200 response 2019-05-23 15:09:56 -05:00
Derrick J. Wippler
2ce33c3fea Remove now inits peers if needed 2019-05-23 12:40:01 -05:00
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