feat: review changes

This commit is contained in:
=
2025-02-10 15:46:38 +05:30
parent 9eed67c21b
commit 648fde8f37
7 changed files with 31 additions and 23 deletions
@@ -1,4 +1,4 @@
export const newRingBuffer = <T>(bufferSize = 10) => {
export const createCircularCache = <T>(bufferSize = 10) => {
const bufferItems: { id: string; item: T }[] = [];
let bufferIndex = 0;