Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestTTLBasic (0.34 sec)

  1. pkg/cache/ttlCache_test.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package cache
    
    import (
    	"sync/atomic"
    	"testing"
    	"time"
    )
    
    func TestTTLBasic(t *testing.T) {
    	ttl := NewTTL(5*time.Second, 1*time.Millisecond)
    	testCacheBasic(ttl, t)
    }
    
    func TestTTLConcurrent(t *testing.T) {
    	ttl := NewTTL(5*time.Second, 1*time.Second)
    	testCacheConcurrent(ttl, t)
    }
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 2.5K bytes
    - Viewed (0)
Back to top