util Tool Function - LruBuffer
Introduction
This sample shows the use of the LruBuffer API in Extended TypeScript (eTS).
Usage
The home page of the sample app consists of two parts: text box and button area. The button area provides the following buttons: Initialize buffer, Get buffer capacity, Update buffer capacity, Get buffer string, Add key-value pair, Get value of key, Get all key-value pairs, Delete key and value, Clear all key-value pairs, and View operation record. You can touch these buttons and view the corresponding operation results in the text box.
Constraints
This sample can only be run on standard-system devices.