fraci
    Preparing search index...

    Function createFraciCache

    • 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.

      Returns FraciCache

      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