1# util Tool Function - LruBuffer 2 3 4 5### Introduction 6 7This sample shows the use of the **LruBuffer** API in Extended TypeScript (eTS). 8 9### Usage 10 11The 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. 12 13### Constraints 14 15This sample can only be run on standard-system devices. 16