Commit Graph

  • 5327a9113c add contributor Eric Loza 2018-08-02 21:14:34 -0300
  • 641988a992 fix typo Eric Loza 2018-08-02 21:13:45 -0300
  • cc2fc92276 delete by prefix Eric Loza 2018-08-02 21:12:41 -0300
  • 9f6ff22cff Fix benchmark for-loop shadowing Patrick Mylund Nielsen 2018-05-27 00:33:50 -0400
  • c54f135e04 Updating contributors arjunkr 2018-04-28 13:07:36 +0530
  • 86c719bb7c Add SetNx (Set if not exist) method to cache arjunkr 2018-04-28 12:36:24 +0530
  • 8ba0cd95c8 Add method for getting all cache keys Aleksandrs Antonovs 2018-04-14 01:23:55 +0200
  • 1f679e697a
    Merge 386f0be94b into a3647f8e31 zy 2018-04-04 06:39:22 +0000
  • 386f0be94b fix: data race when go func() in for loop Ying Zou 2018-04-04 14:30:05 +0800
  • c6fb363597 update README youjianglong 2018-03-28 15:42:48 +0800
  • 0dcaa59db8 Add Iterate youjianglong 2018-03-28 15:22:17 +0800
  • a62604383c contributors update Dmitry 2018-03-27 15:33:22 +0300
  • baf80827aa 新增remove方法用来,删除并返回删除元素 ybq 2018-03-21 16:27:40 +0800
  • cf0198ac7d Also added in GetWithExpiration Durand Fabrice 2018-01-04 09:39:16 -0500
  • b1291d9dbe Delete from the cache on Get if the item expired (to trigger onEvicted) Durand Fabrice 2018-01-03 09:44:03 -0500
  • 1a3375faa5 remove old dmitry 2017-11-30 15:32:07 +0200
  • fdb9829e38 rewriting cache to sync.Map and make all cache tests work dmitry 2017-11-30 15:31:14 +0200
  • 22622817e6 rewriting cache to sync.Map and make all cache tests work dmitry 2017-11-29 20:20:11 +0200
  • 24d235895f Merge a8011e21b9 into a3647f8e31 Ten 2017-11-15 05:20:51 +0000
  • a8011e21b9 Add method GetCacheBytes(c *cache) int hero0926 2017-11-15 14:16:56 +0900
  • 458de2f8ab Add UpdateExpiration method. Dossy Shiobara 2017-08-23 14:19:15 -0400
  • 037e5c9a68 Merge 15c04393c8 into a3647f8e31 Doug Daniels 2017-07-22 04:01:47 +0000
  • 763215fd6a Merge 46cecf25cc into a3647f8e31 Victor Poluksht 2017-07-22 04:01:47 +0000
  • 9d1b838e0e Merge bd7c65aa3c into a3647f8e31 Stephen McQuay 2017-07-22 04:01:46 +0000
  • a3647f8e31 Merge pull request #64 from inf-rno/master v2.1.0 Patrick Mylund Nielsen 2017-07-22 00:01:10 -0400
  • 0640633ccc Fix race condition Vivian Mathews 2017-07-21 14:56:50 -0400
  • 686273fa03 Merge 8f028ba51c into 7ac151875f Oskar Wojciski 2017-07-12 06:57:42 +0000
  • 37630f2f9a
    Add function which increse int64 or set in cache if not exists yet oskarwojciski 2017-07-12 08:55:53 +0200
  • 8f028ba51c
    Add functionality allowing to get expired value (stale) from cache oskarwojciski 2017-07-12 08:51:14 +0200
  • 1f4b3cc365 updated readme doc for getting cacheItem Rahul Raheja 2017-07-03 15:49:40 -0400
  • 44fb2d5981 add isExpired bool to OnEvicted callback signature Ashton Kinslow 2017-06-08 19:11:19 -0500
  • aae930f03c Adding some unitlity functions to cache: * GetRefresh: Get item from cache, update TTL. This allows users to store resources in cache and have them automatically removed if they haven't been used for X amount of time * GetRefreshDefault: Same as GetRefresh with default duration (=~ SetDefault) * Pop: Get elements from cache, and remove them Elias Van Ootegem 2017-05-31 15:36:16 +0100
  • c364809b54 Add method to retrieve CacheItem rather than the value of the item only Rahul Raheja 2017-05-05 20:29:15 -0400
  • bd7c65aa3c
    add Stephen to list of contributors Stephen McQuay (smcquay) 2017-04-30 19:45:06 -0700
  • 6b566c2c3a
    Pass battery of linting/vetting Stephen McQuay (smcquay) 2017-04-30 19:45:06 -0700
  • f73e2280ec Ensure onEvicted is run after DeleteLRUAmount, and don't allocate evicted items array if no onEvicted function is registered Patrick Mylund Nielsen 2017-04-19 10:26:35 -0400
  • 78ff45eea0 Don't return a pointer in Item.LastAccessed() Patrick Mylund Nielsen 2017-04-19 10:14:55 -0400
  • 9f5600511e Merge 98d5fc4131 into 7ac151875f Doug Daniels 2017-04-19 10:36:08 +0000
  • 7f7e45ecd4 Merge 71bfe9e709 into 7ac151875f pranjal5215 2017-04-19 10:36:08 +0000
  • c63dcbab96 Avoid more time.Now() calls Patrick Mylund Nielsen 2017-04-18 22:45:37 -0400
  • cd479c6eeb Add GetManyConcurrent benchmarks for LRU cache Patrick Mylund Nielsen 2017-04-18 22:12:31 -0400
  • 6a67eef9fd Add concurrent read benchmark for LRU cache Patrick Mylund Nielsen 2017-04-18 22:03:33 -0400
  • cde99c3f10 README.md: Remove trailing spaces Patrick Mylund Nielsen 2017-04-18 21:54:29 -0400
  • 795debb4ed Merge latest master (GetWithExpiration) with LRU Patrick Mylund Nielsen 2017-04-18 20:01:30 -0400
  • fdfec335d5 Various updates to LRU functionality Patrick Mylund Nielsen 2017-04-18 19:47:15 -0400
  • 7ac151875f Merge pull request #46 from alexedwards/master Patrick Mylund Nielsen 2017-04-18 19:29:47 -0400
  • d8d9d6491e Various fixes for upstream acceptance, and formatting M 2017-04-18 12:40:40 -0400
  • 247cddedd3 Merge f648931821 into ea4bd2a538 beppeben 2017-03-29 08:08:40 +0000
  • d07c004c68 Merge bec54ffe0d into ea4bd2a538 Christoph Petrausch 2017-03-29 08:08:40 +0000
  • f2390a1370 Merge 249f01f691 into ea4bd2a538 Dolf Schimmel 2017-03-29 08:08:39 +0000
  • ea4bd2a538 LICENSE: Update copyright years Patrick Mylund Nielsen 2017-03-26 12:37:11 -0400
  • 96426d0c5b README.md: Remove the unprotected change example since it would actually need external synchronization Patrick Mylund Nielsen 2017-03-26 12:36:28 -0400
  • dd1ed0ba63 README.md: Remove one level of indentation and increase 'recommended' cleanupInterval Patrick Mylund Nielsen 2017-03-26 12:30:15 -0400
  • 249f01f691 Add GetPossiblyExpired() Dolf Schimmel 2017-02-06 00:24:14 +0100
  • 15c04393c8
    Provide GetAndSet(k string, setFn func) to allow synchronized atomic upsert behavior when key doesn't exist in cache Douglas Daniels 2016-02-10 14:56:17 -0600
  • 8c11fe2df0 Add GetWithExpiration Alex Edwards 2016-12-08 14:50:49 +0100
  • bec54ffe0d Added myself to contributors. Moved tests to Items() Christoph Petrausch 2016-11-28 08:04:39 +0100
  • f9be2c1abe Merge branch 'master' of https://github.com/patrickmn/go-cache Christoph Petrausch 2016-11-28 07:56:43 +0100
  • e7a9def80f Add SetDefault() for setting with the default expiration Patrick Mylund Nielsen 2016-11-25 18:48:19 -0500
  • 52581776a3 LICENSE: Update copyright year Patrick Mylund Nielsen 2016-11-25 14:18:09 -0500
  • 9e6d9117e7 Add 'inlining of expired' note to Items() Patrick Mylund Nielsen 2016-11-25 13:57:39 -0500
  • a2d8b56f0c Make Items() return a copy rather than an unsynchronized reference to the underlying items map Patrick Mylund Nielsen 2016-11-25 13:56:11 -0500
  • 46cecf25cc SetMulti Victor Poluksht 2016-11-23 00:12:36 +0000
  • c5b8fcb38d Merge e4b4bf33ab into 1881a9bccb Peng Gao 2016-11-17 07:01:06 +0000
  • e4b4bf33ab Update README.md Peng Gao 2016-11-14 11:53:45 +0800
  • 266c1c3f3e Update coverage badge Peng Gao 2016-11-09 15:24:47 +0800
  • ad7b6c4480 Merge 64597b577e into 1881a9bccb Peng Gao 2016-11-09 06:36:59 +0000
  • 64597b577e Update travis Peng Gao 2016-11-09 14:33:00 +0800
  • 71bfe9e709 cache changes for evictBulk Pranjal Pandit 2016-09-15 18:47:54 +0530
  • 738ddeb7e2 TestUpdate check Update expiration time Pranjal Pandit 2016-09-13 15:22:42 +0530
  • 1b4adb128a make back to unexported:typo Pranjal Pandit 2016-09-13 14:36:28 +0530
  • b205f45f51 make sharded cache unexported back again Pranjal Pandit 2016-09-13 13:44:46 +0530
  • 884405c431 Add namespace for Item and inline janitor Peng Gao 2016-09-01 14:03:22 +0800
  • f26e1d0b06 Fix #3, use put common code in individual a file Peng Gao 2016-09-01 11:46:59 +0800
  • c193f8a44d Added function GetNotExpiredItems to get all not expired items in a threadsafe manner Christoph Petrausch 2016-08-31 08:35:59 +0200
  • f7f14e07e4 Support zero value in template Peng Gao 2016-08-31 14:04:57 +0800
  • 4378c9a40e Fix type finding bugs and add zero vaule for func Peng Gao 2016-08-31 12:21:05 +0800
  • 86164a864c cache test and Update added Pranjal Pandit 2016-08-30 01:05:50 +0530
  • 26fb4f1043 check locally with exporting and using shraded cache Pranjal Pandit 2016-08-29 22:42:41 +0530
  • ebc1ab826e Add decrement and increment for numberic types Peng Gao 2016-08-29 18:58:22 +0800
  • 6528eb255b Merge 3cceb4fab0 into 1881a9bccb Peng Gao 2016-08-27 12:02:52 +0000
  • 3cceb4fab0 Update README, ci, pa Peng Gao 2016-08-27 20:00:58 +0800
  • 5b06290188 Support zerovalue and fix tests Peng Gao 2016-08-27 19:35:01 +0800
  • 987311e3b4 Refactor code Peng Gao 2016-08-27 18:05:46 +0800
  • 96d0b686a8 Update LICENSE and CONTRIBUTORS Peng Gao 2016-08-26 14:05:15 +0800
  • 96eafc2dcd Add generator for code Peng Gao 2016-08-11 16:42:28 +0800
  • 4606d7097e cachemap: modify go-cache by using certain type Peng Gao 2016-08-11 11:58:16 +0800
  • d84a7fc928 Added Get and reset method called GetR which resets the expiration Paul Montag 2016-07-14 23:00:01 -0500
  • 98d5fc4131 Add GetWithExpiration(k) (interface{}, time.Time, bool) Douglas Daniels 2016-02-10 11:30:20 -0600
  • 1881a9bccb Merge pull request #29 from darrenmcc/master v2.0.0 Patrick Mylund Nielsen 2016-01-27 12:00:04 -0500
  • da6326cd69 added go syntax highlighting to README Darren McCleary 2016-01-27 11:56:21 -0500
  • 5849ccb308 remove mu.RUnlock call from get Patrick Mylund Nielsen 2016-01-08 15:02:42 -0500
  • f648931821 revised formatting Giuseppe 2015-12-05 15:00:25 +0100
  • 05f1124e1e revised formatting Giuseppe 2015-12-05 14:53:44 +0100
  • 3969366c62 fixed formatting Giuseppe 2015-12-05 14:45:05 +0100
  • a6be55d590 Merge branch 'master' into bst Giuseppe 2015-12-05 14:32:06 +0100
  • 3eb91e81eb Merge branch 'master' of https://github.com/patrickmn/go-cache Giuseppe 2015-12-05 14:20:51 +0100
  • 97de98b0f1 fixed few bugs Giuseppe 2015-12-05 14:19:03 +0100
  • 721cc9438c Add BenchmarkRWMutexInterfaceMapGetString Patrick Mylund Nielsen 2015-12-03 09:55:58 -0500
  • 8c41258ef3 Add BenchmarkRWMutexInterfaceMapGet Patrick Mylund Nielsen 2015-12-03 09:40:14 -0500