github.com/authzed/spicedb@v1.32.1-0.20240520085336-ebda56537386/pkg/cache/cache_wasm.go (about)

     1  package cache
     2  
     3  import (
     4  	"fmt"
     5  )
     6  
     7  // NewCache returns an error for caching.
     8  // This is used because ristretto cannot be built under WASM.
     9  func NewCache(config *Config) (Cache, error) {
    10  	return nil, fmt.Errorf("caching is currently unsupported in WASM")
    11  }