// NewSweepExpirationService creates a new expiration service
// which is working according to ExpirationPolicySweep.
NewSweepExpirationService creates a new expiration service
which is working according to ExpirationPolicySweep.
// NewSweepExpirationService creates a new expiration service // which is working according to ExpirationPolicySweep .
func NewSweepExpirationService(expires time.Duration) ExpirationService {
	expSrv := &sweepExpirationService{
		accesses: make(map[uint64]int64),
		Expires:  int64(expires),
	}
	return expSrv
}
func NewSweepExpirationService ( expires time . Duration ) ExpirationService { expSrv := & sweepExpirationService { accesses : make ( map [ uint64 ] int64 ) , Expires : int64 ( expires ) , } return expSrv }
NewSweepExpirationService creates a new expiration service
which is working according to ExpirationPolicySweep.
NewSweepExpirationService creates a new expiration service which is working according to ExpirationPolicySweep .