/*-
* See the file LICENSE for redistribution information.
*
* Copyright (c) 2009 Oracle. All rights reserved.
*
*/
using System;
using System.Collections.Generic;
using System.Text;
namespace BerkeleyDB {
///
/// A class to represent information about the Berkeley DB cache
///
public class CacheInfo {
///
/// The number of gigabytes in the cache
///
public uint Gigabytes;
///
/// The number of bytes in the cache
///
public uint Bytes;
///
/// The number of caches
///
public int NCaches;
///
/// Create a new CacheInfo object. The size of the cache is set to
/// gbytes gigabytes plus bytes and spread over numCaches separate
/// caches.
///
/// The number of gigabytes in the cache
/// The number of bytes in the cache
/// The number of caches
public CacheInfo(uint gbytes, uint bytes, int numCaches) {
Gigabytes = gbytes;
Bytes = bytes;
NCaches = numCaches;
}
}
}