Creates a new empty FraciCache for storing computed values in string-based fractional indexing operations. Using a cache can improve initialization performance when repeatedly using the same base configurations.
A new empty FraciCache instance
const cache = createFraciCache();const fraci1 = fraciString({ brand: "a", lengthBase: "abcdefghij", digitBase: "0123456789" }, cache);const fraci2 = fraciString({ brand: "b", lengthBase: "abcdefghij", digitBase: "0123456789" }, cache);// Both instances will share cached computations Copy
const cache = createFraciCache();const fraci1 = fraciString({ brand: "a", lengthBase: "abcdefghij", digitBase: "0123456789" }, cache);const fraci2 = fraciString({ brand: "b", lengthBase: "abcdefghij", digitBase: "0123456789" }, cache);// Both instances will share cached computations
Creates a new empty FraciCache for storing computed values in string-based fractional indexing operations. Using a cache can improve initialization performance when repeatedly using the same base configurations.