github.com/hyperledger/aries-framework-go@v0.3.2/pkg/doc/verifiable/cache_js_wasm.go (about)

     1  /*
     2  Copyright SecureKey Technologies Inc. All Rights Reserved.
     3  
     4  SPDX-License-Identifier: Apache-2.0
     5  */
     6  
     7  package verifiable
     8  
     9  import "time"
    10  
    11  // NewExpirableSchemaCache creates new instance of ExpirableSchemaCache.
    12  func NewExpirableSchemaCache(size int, expiration time.Duration) *ExpirableSchemaCache {
    13  	// TODO Add cache implementation for VC wasm https://github.com/hyperledger/aries-framework-go/issues/1009
    14  	return &ExpirableSchemaCache{
    15  		cache:      nil,
    16  		expiration: expiration,
    17  	}
    18  }