mirror of
				https://github.com/TeaOSLab/EdgeAPI.git
				synced 2025-11-04 16:00:24 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			21 lines
		
	
	
		
			317 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			317 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package ttlcache
 | 
						|
 | 
						|
type OptionInterface interface {
 | 
						|
}
 | 
						|
 | 
						|
type PiecesOption struct {
 | 
						|
	Count int
 | 
						|
}
 | 
						|
 | 
						|
func NewPiecesOption(count int) *PiecesOption {
 | 
						|
	return &PiecesOption{Count: count}
 | 
						|
}
 | 
						|
 | 
						|
type MaxItemsOption struct {
 | 
						|
	Count int
 | 
						|
}
 | 
						|
 | 
						|
func NewMaxItemsOption(count int) *MaxItemsOption {
 | 
						|
	return &MaxItemsOption{Count: count}
 | 
						|
}
 |