Commit graph

  • 4f264cc4f1
    update module name master Alex Grintsvayg 2020-11-03 15:37:56 -0500
  • 818c60532e
    add Size() fn Alex Grintsvayg 2020-11-03 15:35:11 -0500
  • 1189f7f993 make Clear thread-safe Karl Seguin 2020-08-16 21:12:47 +0800
  • 839a17bedb Remove impossible race conditions from test Karl Seguin 2020-08-16 19:07:52 +0800
  • 0dbf3f125f add TrackingSet to LayeredCache Karl Seguin 2020-08-14 11:15:13 +0800
  • f3b2b9fd88
    Merge pull request #48 from sargun/master Karl Seguin 2020-08-14 11:03:30 +0800
  • aa0e37ad6f
    Merge pull request #47 from bep/type-deletefunc Karl Seguin 2020-08-14 10:56:02 +0800
  • df91803297 Add TrackingSet method Sargun Dhillon 2020-08-13 10:43:38 -0700
  • a42bd4a9c8
    Use typed *Item in DeleteFunc Bjørn Erik Pedersen 2020-08-13 16:10:22 +0200
  • e9b7be5016 remove race condition Karl Seguin 2020-08-13 15:49:28 +0800
  • fdd08e71c4
    Merge pull request #46 from bep/document-deletefunc Karl Seguin 2020-08-13 15:47:33 +0800
  • 992cd9564b
    Document DeleteFunc Bjørn Erik Pedersen 2020-08-13 09:05:27 +0200
  • d7846ec7e0 grab lookup len under read lock race_fix Karl Seguin 2020-08-13 10:41:28 +0800
  • f63031fa40
    Merge pull request #45 from bep/DeleteFunc Karl Seguin 2020-08-13 10:37:20 +0800
  • d56665a86e
    Add DeleteFunc Bjørn Erik Pedersen 2020-08-12 17:30:28 +0200
  • 223703f7f0
    Merge pull request #44 from bep/layered-delete-prefix Karl Seguin 2020-08-12 08:39:47 +0800
  • a24d7f8c53
    Add DeletePrefix to LayeredCache Bjørn Erik Pedersen 2020-08-11 18:53:40 +0200
  • 3b58df727e
    Merge pull request #43 from jonathonlacher/patch-1 Karl Seguin 2020-07-17 14:07:50 +0800
  • 4c88bf60e6
    fix spelling in readme Jonathon Lacher 2020-07-16 15:15:43 -0500
  • eab9dbaa7f update readme to /v2 Karl Seguin 2020-06-29 20:50:55 +0800
  • 937ca294e6 go mod version v2.0.6 Karl Seguin 2020-06-29 15:22:50 +0800
  • 40275a30c8 Ability to dynamically SetMaxSize v2.0.5 v2.0.4 2.0.5 Karl Seguin 2020-06-26 20:22:30 +0800
  • d9aec58960 add GetDropped documentation 2.0.4 Karl Seguin 2020-02-16 11:54:07 +0800
  • 1a257a89d6 add GetDropped function Karl Seguin 2020-02-05 22:05:05 +0800
  • 78289f8f0b
    Merge pull request #38 from karlseguin/DeletePrefix Karl Seguin 2020-01-23 13:03:42 +0800
  • 79f9dcde21 fewer defers, document DeletePrefix Karl Seguin 2020-01-23 12:55:55 +0800
  • 04261a5282 Merge branch 'master' into DeletePrefix Karl Seguin 2020-01-23 12:50:53 +0800
  • 569ae60338
    Merge pull request #37 from aporeto-inc/pin-expect Karl Seguin 2020-01-23 11:44:58 +0800
  • 048ac0669f
    fixed/module: expect needs to be on master Antoine Mercadal 2020-01-22 19:35:19 -0800
  • 2ff4136636
    Merge pull request #36 from aporeto-inc/go-modules Karl Seguin 2020-01-23 11:19:07 +0800
  • f79de0e254
    migrate to go modules Antoine Mercadal 2020-01-22 19:16:52 -0800
  • 356e164dd5 preliminary work on DeletePrefix Karl Seguin 2020-01-23 10:27:12 +0800
  • 2ff889bcae document Clear Karl Seguin 2020-01-23 10:04:47 +0800
  • 46ec5d2257 explicitly state the thread-safety nature of the library Karl Seguin 2020-01-23 09:38:19 +0800
  • ec06cd93a0
    Merge pull request #28 from buglloc/bucket_tests v2.0.3 Karl Seguin 2019-02-23 22:26:40 +0700
  • 8d8b062716 fixed bucket tests Andrew Krasichkov 2019-02-14 15:54:01 +0300
  • 3385784411 Add cache.ItemCount() intt64 API Karl Seguin 2019-01-26 12:33:50 +0700
  • 692cd618b2 guard access to item.promotions in LayeredCache, which was applied to Cache in 557d56ec6f Karl Seguin 2018-12-27 22:51:19 +0700
  • 142396791e
    Merge pull request #22 from alexejk/gcOnDelete Karl Seguin 2018-11-26 20:29:43 +0700
  • 243f5c8219
    Fixes #21. Callong OnDelete during gc() Alexej Kubarev 2018-11-25 15:31:09 -0800
  • 7e55af0a9c
    Small routine lock file upgrade Alexej Kubarev 2018-11-25 15:29:47 -0800
  • a317416755
    Merge pull request #16 from alexejk/onremove Karl Seguin 2018-07-22 11:17:02 +0700
  • 7421e2d7b4
    Adding support for OnDelete callback function Alexej Kubarev 2018-07-16 18:20:17 +0200
  • 72059a01e9
    Adding missing ignore file to ensure vendor folder is not checked in Alexej Kubarev 2018-07-16 18:18:51 +0200
  • 00324cb2d2
    Adding dep dependency management files to utilize vendoring Alexej Kubarev 2018-07-16 18:18:02 +0200
  • b425c9ca00 Merge pull request #11 from EdwardBetts/spelling Karl Seguin 2017-09-04 13:47:32 +0700
  • 0d05fa8278 correct spelling mistake Edward Betts 2017-09-01 11:40:44 +0100
  • 3ba9789cfd Merge pull request #10 from heyitsanthony/test-races Karl Seguin 2017-02-17 13:08:20 +0700
  • b3c864ded7 cache: make Stop() synchronous and races in tests Anthony Romano 2017-02-10 10:51:01 -0800
  • c69270ce08 layeredcache: add Stop() and fix races in tests Anthony Romano 2017-02-10 10:26:41 -0800
  • 12c7ffdc19 Merge pull request #9 from spicydog/patch-1 Karl Seguin 2016-12-22 18:15:50 +0700
  • 77679ba342 Fix an error in example "itemsToPrune" spicydog 2016-12-21 20:07:16 +1000
  • a2d6215577 Merge pull request #8 from jdeppe-pivotal/master v2.0.2 Karl Seguin 2016-11-03 22:19:53 +0700
  • a451d7262c Integrate feedback and upstream fixes Jens Deppe 2016-11-01 23:53:22 -0700
  • d2c2442186 Merge remote-tracking branch 'seguin/master' Jens Deppe 2016-11-01 20:33:44 -0700
  • 8adbb5637b return *Item from layered cache fetch instead of interface{} v2.0.1 Karl Seguin 2016-11-02 09:34:09 +0700
  • c1634a4d00 Add concept of a SecondaryCache which exposes the secondary part of a LayeredCache Jens Deppe 2016-11-01 09:01:39 -0700
  • 2f6b517f7b Merge pull request #6 from HasMatthew/nanosecond_ttl Karl Seguin 2016-07-07 20:03:45 -0700
  • 162d4e27ca Use nanosecond-resolution TTL instead of second-resolution. Matthew Dale 2016-07-07 15:32:49 -0700
  • ddcff8e624 Merge pull request #5 from dvdplm/master v2.0.0 Karl Seguin 2016-02-05 22:16:17 +0800
  • 3665b16e83 Better test David Palm 2016-02-05 14:34:58 +0100
  • d5307b40af Fetch does not return stale items David Palm 2016-02-03 16:07:59 +0100
  • 74754c77cc Partially fixing #3. Karl Seguin 2015-07-26 11:05:48 +0800
  • bfa769c6b6 add Stop method to stop the background worker and make it possible for the GC to reap the object Karl Seguin 2015-07-23 22:24:50 +0800
  • 41f1a3cfcb gonna be one of those days... v1.0.1 Karl Seguin 2015-01-07 08:12:17 +0700
  • f9c7f14b7b Fetch's API wasn't usable. It returned different values types based on whether the fetch was needed or not. It now behaves consistently (with itself and with Get), returning an *Item. Karl Seguin 2015-01-07 08:09:39 +0700
  • 6df1e24ae3 2 changes: Karl Seguin 2014-12-28 11:11:32 +0700
  • 557d56ec6f guard all access to item.promotions Karl Seguin 2014-12-28 10:35:20 +0700
  • c75dcd4c12 link to rcache Karl Seguin 2014-12-06 17:19:23 +0700
  • 78e597cdae replace is size-aware v1.0.0 Karl Seguin 2014-11-21 15:45:11 +0700
  • 41ccfbb39a renamed MaxItems to MaxSize, updated readme Karl Seguin 2014-11-21 15:06:27 +0700
  • c810d4feb3 test + fix for actual size function Karl Seguin 2014-11-21 14:59:04 +0700
  • ff8727e847 initial work on tracking cache by item size Karl Seguin 2014-11-21 14:39:25 +0700
  • 44cdb043d1 Move size tracking to a variable, away from simply using the length of the list. This paves the way for more complex size tracking. Karl Seguin 2014-11-20 07:03:59 +0700
  • df2f8eb082 Added documentation. Karl Seguin 2014-11-14 07:56:24 +0700
  • 3e4d668990 blank identifier for tests Karl Seguin 2014-11-14 07:41:22 +0700
  • 2131ac5052 better tests Karl Seguin 2014-11-13 22:26:05 +0700
  • 7316f99bd9 replace on layeredcache Karl Seguin 2014-11-13 22:23:52 +0700
  • 65573a0cb6 helper makefile Karl Seguin 2014-11-13 22:20:23 +0700
  • cc0395a391 added replace method Karl Seguin 2014-11-13 22:20:12 +0700
  • 7e08960075 update readme Karl Seguin 2014-11-04 17:24:07 +0700
  • 5e131cc17c Buckets must be a power of 2. Move from % to & for determining the bucket. Karl Seguin 2014-11-02 18:09:49 +0700
  • 624c03cd3e delete and deleteall return boolean to indicate if delete found the item Karl Seguin 2014-10-27 08:30:48 +0700
  • 0fddc964ec added extend Karl Seguin 2014-10-27 08:27:26 +0700
  • 77765a3f11 Get now returns the *Item rather than the item's value. Get no longer actively purges stale items. Karl Seguin 2014-10-25 17:15:47 +0700
  • 3a00ce8f0a fixed possible nil panic when item is deleted immediately after being added Karl Seguin 2014-10-25 12:24:52 +0700
  • b0e3fca0f6 fixed formatting Karl Seguin 2014-10-25 12:21:10 +0700
  • 0c7492b382 Added layered cache Karl Seguin 2014-10-25 12:19:14 +0700
  • 13c50b1ff5 Remove the item's mutex. doPromote can only happen in a single goroutine. Bucket.set has its own lock which would prevent an item from being accessed by multiple goroutines. Karl Seguin 2014-10-25 09:44:22 +0700
  • c626aca486 item's RWMutex -> Mutex (which is how it was being used) Karl Seguin 2014-10-25 08:35:52 +0700
  • 967200d7bc switched from gspec -> expect Karl Seguin 2014-10-25 07:46:18 +0700
  • a81a0f665c Changed some config defaults. Karl Seguin 2014-10-14 13:43:34 +0700
  • d9d6e2b00e This is a sad commit. Karl Seguin 2014-04-08 23:36:28 +0800
  • 7e109b11cc removed print line to fix #1 Karl Seguin 2014-03-23 07:52:26 +0800
  • 4456358470 config documentation Karl Seguin 2014-03-01 00:44:39 +0800
  • c1e1fb5933 fixed tests Karl Seguin 2014-02-28 23:50:42 +0800
  • 890bb18dbf The cache can now do reference counting so that the LRU algorithm is aware of long-lived objects and won't clean them up. Oftentimes, the value returned from a cache hit is short-lived. As a silly example: Karl Seguin 2014-02-28 20:10:42 +0800
  • af884bb25f Added license Karl Seguin 2013-11-17 20:47:28 +0800
  • fd8650d72b fixed typo Karl Seguin 2013-11-13 16:17:18 +0800
  • 92538ee30d refactored shouldPromote Karl Seguin 2013-11-13 15:36:01 +0800