blob: 954e3e0e3565e637ac181ee12cd4d34b537a0112 [file] [log] [blame]
package com.gemstone.gemfire.internal.redis.executor;
import com.gemstone.gemfire.internal.redis.Coder;
import com.gemstone.gemfire.internal.redis.Command;
import com.gemstone.gemfire.internal.redis.ExecutionHandlerContext;
public class DBSizeExecutor extends AbstractExecutor {
@Override
public void executeCommand(Command command, ExecutionHandlerContext context) {
int size = context.getRegionCache().getMetaSize();
command.setResponse(Coder.getIntegerResponse(context.getByteBufAllocator(), size));
}
}