001/******************************************************************************* 002 * Copyright (c) 2006-2014 Nuxeo SA (http://nuxeo.com/) and others. 003 * 004 * All rights reserved. This program and the accompanying materials 005 * are made available under the terms of the Eclipse Public License v1.0 006 * which accompanies this distribution, and is available at 007 * http://www.eclipse.org/legal/epl-v10.html 008 ******************************************************************************/ 009package org.nuxeo.ecm.core.redis; 010 011import java.io.IOException; 012 013public interface RedisAdmin { 014 015 String namespace(String... names); 016 017 /** 018 * Load script in redis 019 * 020 * @since 6.0 021 */ 022 String load(String bundle, String name) throws IOException; 023 024 /** 025 * Clear keys in redis 026 * 027 * @since 6.0 028 */ 029 public Long clear(String prefix); 030 031}