Exemple #1
0
// EnvExists returns true iff the env exists.
func EnvExists(as *aerospike.Client, env string) (exists bool, err error) {
	key, err := envKey(env)
	if err != nil {
		return false, err
	}
	return as.Exists(nil, key)
}
Exemple #2
0
// ServiceExists returns true iff the service exists.
func ServiceExists(
	as *aerospike.Client, env string, service string) (
	exists bool, err error) {
	key, err := serviceKey(env, service)
	if err != nil {
		return false, err
	}
	return as.Exists(nil, key)
}