Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for validateFormat (0.08 sec)

  1. internal/event/target/redis.go

    	}
    
    	if r.QueueDir != "" {
    		if !filepath.IsAbs(r.QueueDir) {
    			return errors.New("queueDir path should be absolute")
    		}
    	}
    
    	return nil
    }
    
    func (r RedisArgs) validateFormat(c redis.Conn) error {
    	typeAvailable, err := redis.String(c.Do("TYPE", r.Key))
    	if err != nil {
    		return err
    	}
    
    	if typeAvailable != "none" {
    		expectedType := "hash"
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 9.1K bytes
    - Viewed (0)
Back to top