Skip to content

Commit

Permalink
Markdown License badges
Browse files Browse the repository at this point in the history
  • Loading branch information
hadv committed Jun 10, 2024
1 parent 32dd86a commit 0c4e441
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[![Go](https://github.com/hadv/ringcache/actions/workflows/go.yml/badge.svg)](https://github.com/hadv/ringcache/actions/workflows/go.yml)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

A non-thread-safe ring cache, also known as a circular buffer, is a fixed-size data structure designed to efficiently handle a continuous stream of data by overwriting the oldest entries when new data is added and the buffer is full. This implementation ensures constant memory usage and provides O(1) time complexity for both adding and retrieving elements. However, it is not safe for concurrent use and should be used in single-threaded environments where predictable performance and efficient memory management are required.

Expand Down

0 comments on commit 0c4e441

Please sign in to comment.