Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: erni27/imcache
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.9.0
Choose a base ref
...
head repository: erni27/imcache
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref

Commits on Apr 17, 2023

  1. Fix README (#31)

    erni27 authored Apr 17, 2023
    Copy the full SHA
    e27ff9b View commit details

Commits on Apr 20, 2023

  1. Copy the full SHA
    5030469 View commit details

Commits on Apr 22, 2023

  1. Fix typo (#34)

    This PR fixes typo in README doc.
    erni27 authored Apr 22, 2023
    Copy the full SHA
    e7deffb View commit details

Commits on Apr 23, 2023

  1. Do internal cleanup (#35)

    erni27 authored Apr 23, 2023
    Copy the full SHA
    d4da385 View commit details

Commits on Apr 30, 2023

  1. Update docs (#36)

    erni27 authored Apr 30, 2023
    Copy the full SHA
    f714bf9 View commit details
  2. Add Close method (#37)

    * Add Close method
    
    * Bump coverage
    
    * Improve godoc
    
    * Improve godoc
    
    * Improve godoc
    erni27 authored Apr 30, 2023
    Copy the full SHA
    b1f3d7b View commit details

Commits on May 2, 2023

  1. Add ReplaceKey method (#38)

    * Add ReplaceKey method
    
    * Extend unit tests
    erni27 authored May 2, 2023
    Copy the full SHA
    8231e75 View commit details

Commits on May 6, 2023

  1. Copy the full SHA
    5b7d897 View commit details
  2. Improve unit tests (#43)

    * Init default test caches
    
    * Improve unit tests
    
    * Improve ReplaceWithFunc godoc
    
    * Apply small improvements
    erni27 authored May 6, 2023
    Copy the full SHA
    b892187 View commit details

Commits on May 21, 2023

  1. Spawn a new goroutine when calling EvictionCallback (#44)

    * Spawn a new goroutine on eviction
    
    * Update docs
    
    * Extend unit tests
    
    * Do not spawn a new goroutine if not needed
    erni27 authored May 21, 2023
    Copy the full SHA
    f12f9af View commit details

Commits on Jun 15, 2023

  1. Copy the full SHA
    c557593 View commit details

Commits on Jun 27, 2023

  1. Add GetMultiple method (#48)

    * Init
    
    * Add Sharded implementation
    
    * Improve data aggregation
    erni27 authored Jun 27, 2023
    Copy the full SHA
    c4e7e46 View commit details

Commits on Jun 28, 2023

  1. Fix rand usage, typos and fields alignment (#49)

    * typos and fields alignment
    
    * typeunparen: could simplify (token) to token
    GreyXor authored Jun 28, 2023
    Copy the full SHA
    c2f6d27 View commit details

Commits on Jul 30, 2023

  1. Add CompareAndSwap method (#50)

    * Add CompareAndSwap method
    
    * Remove misleading doc
    erni27 authored Jul 30, 2023
    Copy the full SHA
    4312a64 View commit details

Commits on Dec 25, 2023

  1. Improve evictionQueue interface (#52)

    * Improve evictionQueue interface
    
    * Simplify the entry creation
    
    * Simplify enforcing eviction policy in GetAll
    
    * Refactor GetOrSet method
    erni27 authored Dec 25, 2023
    Copy the full SHA
    88192fa View commit details

Commits on Jan 13, 2024

  1. Add LFU eviction policy (#53)

    * Add LFU eviction policy
    
    * Extend unit tests
    
    * Add benchmarks
    
    * Remove redundant check
    erni27 authored Jan 13, 2024
    Copy the full SHA
    50ebc73 View commit details

Commits on Jan 14, 2024

  1. Copy the full SHA
    62fa76e View commit details

Commits on Jan 15, 2024

  1. Add Peek method (#56)

    * Add Peek method
    
    * Remove redundant var
    erni27 authored Jan 15, 2024
    Copy the full SHA
    feac194 View commit details
  2. Add PeekMultiple method (#57)

    erni27 authored Jan 15, 2024
    Copy the full SHA
    9ae8586 View commit details

Commits on Jan 16, 2024

  1. Add PeekAll method (#58)

    * Add PeekAll method
    
    * Fix comments
    erni27 authored Jan 16, 2024
    Copy the full SHA
    20ba4c2 View commit details

Commits on Jan 17, 2024

  1. Copy the full SHA
    803488b View commit details
  2. Update readme (#60)

    * Update README
    
    * Remove inconsistent tabs
    erni27 authored Jan 17, 2024
    Copy the full SHA
    ac0980a View commit details

Commits on Aug 29, 2024

  1. Use defer to unlock mutex (#66)

    * FIX: deadlock fix - mutex unlock via defer in GetOrSet
    
    * FIX: move all mutex Unlocks into defer
    
    * FIX: remove unnecessary new lines
    vlasashk authored Aug 29, 2024
    Copy the full SHA
    0991f9b View commit details

Commits on Dec 14, 2024

  1. Copy the full SHA
    bb29b58 View commit details
Showing with 5,109 additions and 3,170 deletions.
  1. +1 −1 LICENSE
  2. +194 −111 README.md
  3. +0 −680 cache.go
  4. +0 −437 cache_benchmark_test.go
  5. +0 −1,565 cache_test.go
  6. +4 −6 cleaner.go
  7. +0 −50 entry.go
  8. +0 −197 entry_test.go
  9. +358 −0 eviction.go
  10. +26 −19 expiration.go
  11. +1,234 −0 imcache.go
  12. +757 −0 imcache_benchmark_test.go
  13. +2,477 −0 imcache_test.go
  14. +0 −16 increment.go
  15. +58 −22 option.go
  16. +0 −66 queue.go
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2023 Ernest Nguyen Hung
Copyright (c) 2024 Ernest Nguyen Hung

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Loading