code: func (_m *Store) CreateLock(key string, ttl int) (lock.DistributedLock, error) {
  	ret := _m.Called(key, ttl)
  
  	var r0 lock.DistributedLock
  	if rf, ok := ret.Get(0).(func(string, int) lock.DistributedLock); ok {
  		r0 = rf(key, ttl)
  	} else {
  		if ret.Get(0) != nil {
  			r0 = ret.Get(0).(lock.DistributedLock)
  		}
  	}
  
  	var r1 error
  	if rf, ok := ret.Get(1).(func(string, int) error); ok {
  		r1 = rf(key, ttl)
  	} else {
  		r1 = ret.Error(1)
  	}
  
  	return r0, r1
  }
docs: // CreateLock provides a mock function with given fields: key, ttl