Returns the offset-newest element. Defaults to 0 (the newest)
Pushes an element on the Cache. If maxLength isn't reached, resizes the cache. If it is reached, overwrites the oldest element
growing array of elements
maximum allowed size of the array
current write position
Provides a growing container. It will overwrite the oldest entries as soon as the maxLength is reached.