// DeleteOldMinerData deletes old miner data from the "miner" ZSets.
// All entries that are older than 24 hours are removed.
// DeleteOldShareData deletes old share data from the "share" ZSets.
// All entries that are older than 24 hours are removed.
// GetMinerCharts retrieves miner charts from Redis and returns them as []*MinerCharts.
// The hashNum parameter determines the maximum number of items to retrieve from the leaderboard.
// The login parameter is used as the key to access the leaderboard.
// The function also supports optional arguments that can be used to perform deletion operations on the leaderboard.
// If the deleteCount argument value is 0, all items in the leaderboard older than 24 hours are removed.
// Otherwise, the first deleteCount items are removed from the leaderboard.
// The result is a slice of MinerCharts objects representing the retrieved charts.
// In case of an error, an error object is returned.
// window defines the duration after which the statistics become stale.
// largeWindow defines the duration after which the statistics are permanently deleted.