C# Класс BB.Caching.Redis.Analytics.BitwiseAnalytics

Methods for performing bitwise analytics.

Note: bitwise operations use byte-sized chunks, so setting the first bit to a value will allocate a full byte worth of data.

Check out the following links: http://blog.getspool.com/2011/11/29/fast-easy-realtime-metrics-using-redis-bitmaps http://amix.dk/blog/post/19714
Показать файл Открыть проект

Открытые методы

Метод Описание
BitwiseAnd ( IDatabase database, RedisKey destination, RedisKey keys ) : long

Perform a bitwise AND operation between multiple keys (containing string values) and store the result in the destination key.

http://redis.io/commands/bitop

BitwiseAnd ( IDatabase database, RedisKey destination, RedisKey keys, System.TimeSpan expire ) : long

Perform a bitwise AND operation between multiple keys (containing string values) and store the result in the destination key.

http://redis.io/commands/bitop

BitwiseAndAsync ( IDatabase database, RedisKey destination, RedisKey keys ) : Task

Perform a bitwise AND operation between multiple keys (containing string values) and store the result in the destination key.

http://redis.io/commands/bitop

BitwiseAndAsync ( IDatabase database, RedisKey destination, RedisKey keys, System.TimeSpan expire ) : Task

Perform a bitwise AND operation between multiple keys (containing string values) and store the result in the destination key.

http://redis.io/commands/bitop

BitwiseNot ( IDatabase database, RedisKey destination, RedisKey key ) : long

Perform a bitwise NOT operation on a key (containing a string value) and store the result in the destination key.

http://redis.io/commands/bitop

BitwiseNot ( IDatabase database, RedisKey destination, RedisKey key, System.TimeSpan expires ) : long

Perform a bitwise NOT operation on a key (containing a string value) and store the result in the destination key.

http://redis.io/commands/bitop

BitwiseNotAsync ( IDatabase database, RedisKey destination, RedisKey key ) : Task

Perform a bitwise NOT operation on a key (containing a string value) and store the result in the destination key.

http://redis.io/commands/bitop

BitwiseNotAsync ( IDatabase database, RedisKey destination, RedisKey key, System.TimeSpan expires ) : Task

Perform a bitwise NOT operation on a key (containing a string value) and store the result in the destination key.

http://redis.io/commands/bitop

BitwiseOr ( IDatabase database, RedisKey destination, RedisKey keys ) : long

Perform a bitwise OR operation between multiple keys (containing string values) and store the result in the destination key.

http://redis.io/commands/bitop

BitwiseOr ( IDatabase database, RedisKey destination, RedisKey keys, System.TimeSpan expire ) : long

Perform a bitwise OR operation between multiple keys (containing string values) and store the result in the destination key.

http://redis.io/commands/bitop

BitwiseOrAsync ( IDatabase database, RedisKey destination, RedisKey keys ) : Task

Perform a bitwise OR operation between multiple keys (containing string values) and store the result in the destination key.

http://redis.io/commands/bitop

BitwiseOrAsync ( IDatabase database, RedisKey destination, RedisKey keys, System.TimeSpan expire ) : Task

Perform a bitwise OR operation between multiple keys (containing string values) and store the result in the destination key.

http://redis.io/commands/bitop

BitwiseXOr ( IDatabase database, RedisKey destination, RedisKey keys ) : long

Perform a bitwise XOR operation between multiple keys (containing string values) and store the result in the destination key.

http://redis.io/commands/bitop

BitwiseXOr ( IDatabase database, RedisKey destination, RedisKey keys, System.TimeSpan expires ) : long

Perform a bitwise XOR operation between multiple keys (containing string values) and store the result in the destination key.

http://redis.io/commands/bitop

BitwiseXOrAsync ( IDatabase database, RedisKey destination, RedisKey keys ) : Task

Perform a bitwise XOR operation between multiple keys (containing string values) and store the result in the destination key.

http://redis.io/commands/bitop

BitwiseXOrAsync ( IDatabase database, RedisKey destination, RedisKey keys, System.TimeSpan expires ) : Task

Perform a bitwise XOR operation between multiple keys (containing string values) and store the result in the destination key.

http://redis.io/commands/bitop

Count ( IDatabase database, RedisKey key, long eventId = -1 ) : long

Gets the count of active bits at the key supplied.

Count ( RedisKey key, long eventId = -1 ) : long

Gets the count of active bits at the key supplied.

CountAsync ( IDatabase database, RedisKey key, long eventId = -1 ) : Task

Gets the count of active bits at the key supplied.

CountAsync ( RedisKey key, long eventId = -1 ) : Task

Gets the count of active bits at the key supplied.

Delete ( string category, string action, string dateTime ) : bool

The delete.

DeleteAsync ( string category, string action, string dateTime ) : Task

The delete.

Exists ( IDatabase database, RedisKey key ) : bool

Determines if the key exists.

Exists ( RedisKey key ) : bool

Determines if the key exists.

ExistsAsync ( IDatabase database, RedisKey key ) : Task

Determines if the key exists.

ExistsAsync ( RedisKey key ) : Task

Determines if the key exists.

GetCounts ( string category, string action, System.DateTime start, System.DateTime end, long eventId = -1, TimeInterval timeInterval = TimeInterval.FifteenMinutes, DayOfWeek firstDayOfWeek = DayOfWeek.Sunday ) : long>>.List

Gets counts by TimeInterval for the date range supplied.

GetCountsAsync ( string category, string action, System.DateTime start, System.DateTime end, long eventId = -1, TimeInterval timeInterval = TimeInterval.FifteenMinutes, DayOfWeek firstDayOfWeek = DayOfWeek.Sunday ) : long>>>.Task

Gets counts by TimeInterval for the date range supplied.

GetDay ( IDatabase database, string category, string action, System.DateTime dateTime ) : RedisKey

Gets the key for the day covered by the DateTime supplied, creating the data at the key if necessary.

GetDayAsync ( IDatabase database, string category, string action, System.DateTime dateTime ) : Task

Gets the key for the day covered by the DateTime supplied, creating the data at the key if necessary.

GetFifteenMinutes ( string category, string action, System.DateTime dateTime ) : RedisKey

Gets the key for the 15 minute interval covered by the DateTime supplied.

GetFifteenMinutesAsync ( string category, string action, System.DateTime dateTime ) : Task

Gets the key for the 15 minute interval covered by the DateTime supplied.

GetHour ( IDatabase database, string category, string action, System.DateTime dateTime ) : RedisKey

Gets the key for the hour covered by the DateTime supplied, creating the data at the key if necessary.

GetHourAsync ( IDatabase database, string category, string action, System.DateTime dateTime ) : Task

Gets the key for the hour covered by the DateTime supplied, creating the data at the key if necessary.

GetMinKeysForRange ( IDatabase database, string category, string action, System.DateTime start, System.DateTime end, TimeInterval timeInterval = TimeInterval.FifteenMinutes ) : RedisKey[]

Gets the fewest number of keys required to cover the date range supplied.

GetMinKeysForRangeAsync ( IDatabase database, string category, string action, System.DateTime start, System.DateTime end, TimeInterval timeInterval = TimeInterval.FifteenMinutes ) : Task

Gets the fewest number of keys required to cover the date range supplied.

GetMonth ( IDatabase database, string category, string action, System.DateTime dateTime ) : RedisKey

Gets the key for the month covered by the DateTime supplied, creating the data at the key if necessary.

GetMonthAsync ( IDatabase database, string category, string action, System.DateTime dateTime ) : Task

Gets the key for the month covered by the DateTime supplied, creating the data at the key if necessary.

GetQuarter ( IDatabase database, string category, string action, System.DateTime dateTime ) : RedisKey

Gets the keys for the months in the quarter covered by the DateTime supplied, creating the data at the key if necessary.

GetQuarterAsync ( IDatabase database, string category, string action, System.DateTime dateTime ) : Task

Gets the keys for the months in the quarter covered by the DateTime supplied, creating the data at the key if necessary.

GetWeek ( IDatabase database, string category, string action, System.DateTime dateTime, DayOfWeek firstDayOfWeek = DayOfWeek.Sunday ) : RedisKey

The get week.

GetWeekAsync ( IDatabase database, string category, string action, System.DateTime dateTime, DayOfWeek firstDayOfWeek = DayOfWeek.Sunday ) : Task

The get week.

HasEvent ( string category, string action, long eventId, System.DateTime start = default(DateTime), System.DateTime end = default(DateTime) ) : bool

Determines if an event occured.

HasEventAsync ( string category, string action, long eventId, System.DateTime start = default(DateTime), System.DateTime end = default(DateTime) ) : Task

Determines if an event occured.

TrackEvent ( string category, string action, long eventId, TimePrecision precision = TimePrecision.OneDay, System.DateTime now = default(DateTime) ) : void

Tracks an event.

TrackEventAsync ( string category, string action, long eventId, TimePrecision precision = TimePrecision.OneDay, System.DateTime now = default(DateTime) ) : System.Threading.Tasks.Task

Tracks an event.

Приватные методы

Метод Описание
EventKey ( string category, string action, string dateTime ) : RedisKey

Описание методов

BitwiseAnd() публичный статический Метод

Perform a bitwise AND operation between multiple keys (containing string values) and store the result in the destination key.
http://redis.io/commands/bitop
public static BitwiseAnd ( IDatabase database, RedisKey destination, RedisKey keys ) : long
database IDatabase /// The database where the query will be performed. This is passed so that we can reuse the same database to /// perform multiple bitwise operations. Doing this with the same connection will guarantee that performance /// is good. ///
destination RedisKey /// The destination key where the result should be stored. ///
keys RedisKey /// The keys where the data to be AND'd are located. ///
Результат long

BitwiseAnd() публичный статический Метод

Perform a bitwise AND operation between multiple keys (containing string values) and store the result in the destination key.
http://redis.io/commands/bitop
public static BitwiseAnd ( IDatabase database, RedisKey destination, RedisKey keys, System.TimeSpan expire ) : long
database IDatabase /// The database where the query will be performed. This is passed so that we can reuse the same database to /// perform multiple bitwise operations. Doing this with the same connection will guarantee that performance /// is good. ///
destination RedisKey /// The destination key where the result should be stored. ///
keys RedisKey /// The keys where the data to be AND'd are located. ///
expire System.TimeSpan /// An expiration lifetime. ///
Результат long

BitwiseAndAsync() публичный статический Метод

Perform a bitwise AND operation between multiple keys (containing string values) and store the result in the destination key.
http://redis.io/commands/bitop
public static BitwiseAndAsync ( IDatabase database, RedisKey destination, RedisKey keys ) : Task
database IDatabase /// The database where the query will be performed. This is passed so that we can reuse the same database to /// perform multiple bitwise operations. Doing this with the same connection will guarantee that performance /// is good. ///
destination RedisKey /// The destination key where the result should be stored. ///
keys RedisKey /// The keys where the data to be AND'd are located. ///
Результат Task

BitwiseAndAsync() публичный статический Метод

Perform a bitwise AND operation between multiple keys (containing string values) and store the result in the destination key.
http://redis.io/commands/bitop
public static BitwiseAndAsync ( IDatabase database, RedisKey destination, RedisKey keys, System.TimeSpan expire ) : Task
database IDatabase /// The database where the query will be performed. This is passed so that we can reuse the same database to /// perform multiple bitwise operations. Doing this with the same connection will guarantee that performance /// is good. ///
destination RedisKey /// The destination key where the result should be stored. ///
keys RedisKey /// The keys where the data to be AND'd are located. ///
expire System.TimeSpan /// An expiration lifetime. ///
Результат Task

BitwiseNot() публичный статический Метод

Perform a bitwise NOT operation on a key (containing a string value) and store the result in the destination key.
http://redis.io/commands/bitop
public static BitwiseNot ( IDatabase database, RedisKey destination, RedisKey key ) : long
database IDatabase /// The database where the query will be performed. This is passed so that we can reuse the same database to /// perform multiple bitwise operations. Doing this with the same connection will guarantee that performance /// is good. ///
destination RedisKey /// The destination key where the result should be stored. ///
key RedisKey /// The key where the data to be NOT'd is located. ///
Результат long

BitwiseNot() публичный статический Метод

Perform a bitwise NOT operation on a key (containing a string value) and store the result in the destination key.
http://redis.io/commands/bitop
public static BitwiseNot ( IDatabase database, RedisKey destination, RedisKey key, System.TimeSpan expires ) : long
database IDatabase /// The database where the query will be performed. This is passed so that we can reuse the same database to /// perform multiple bitwise operations. Doing this with the same connection will guarantee that performance /// is good. ///
destination RedisKey /// The destination key where the result should be stored. ///
key RedisKey /// The key where the data to be NOT'd is located. ///
expires System.TimeSpan /// An expiration lifetime. ///
Результат long

BitwiseNotAsync() публичный статический Метод

Perform a bitwise NOT operation on a key (containing a string value) and store the result in the destination key.
http://redis.io/commands/bitop
public static BitwiseNotAsync ( IDatabase database, RedisKey destination, RedisKey key ) : Task
database IDatabase /// The database where the query will be performed. This is passed so that we can reuse the same database to /// perform multiple bitwise operations. Doing this with the same connection will guarantee that performance /// is good. ///
destination RedisKey /// The destination key where the result should be stored. ///
key RedisKey /// The key where the data to be NOT'd is located. ///
Результат Task

BitwiseNotAsync() публичный статический Метод

Perform a bitwise NOT operation on a key (containing a string value) and store the result in the destination key.
http://redis.io/commands/bitop
public static BitwiseNotAsync ( IDatabase database, RedisKey destination, RedisKey key, System.TimeSpan expires ) : Task
database IDatabase /// The database where the query will be performed. This is passed so that we can reuse the same database to /// perform multiple bitwise operations. Doing this with the same connection will guarantee that performance /// is good. ///
destination RedisKey /// The destination key where the result should be stored. ///
key RedisKey /// The key where the data to be NOT'd is located. ///
expires System.TimeSpan /// An expiration lifetime. ///
Результат Task

BitwiseOr() публичный статический Метод

Perform a bitwise OR operation between multiple keys (containing string values) and store the result in the destination key.
http://redis.io/commands/bitop
public static BitwiseOr ( IDatabase database, RedisKey destination, RedisKey keys ) : long
database IDatabase /// The database where the query will be performed. This is passed so that we can reuse the same database to /// perform multiple bitwise operations. Doing this with the same connection will guarantee that performance /// is good. ///
destination RedisKey /// The destination key where the result should be stored. ///
keys RedisKey /// The keys where the data to be OR'd are located. ///
Результат long

BitwiseOr() публичный статический Метод

Perform a bitwise OR operation between multiple keys (containing string values) and store the result in the destination key.
http://redis.io/commands/bitop
public static BitwiseOr ( IDatabase database, RedisKey destination, RedisKey keys, System.TimeSpan expire ) : long
database IDatabase /// The database where the query will be performed. This is passed so that we can reuse the same database to /// perform multiple bitwise operations. Doing this with the same connection will guarantee that performance /// is good. ///
destination RedisKey /// The destination key where the result should be stored. ///
keys RedisKey /// The keys where the data to be OR'd are located. ///
expire System.TimeSpan /// An expiration lifetime. ///
Результат long

BitwiseOrAsync() публичный статический Метод

Perform a bitwise OR operation between multiple keys (containing string values) and store the result in the destination key.
http://redis.io/commands/bitop
public static BitwiseOrAsync ( IDatabase database, RedisKey destination, RedisKey keys ) : Task
database IDatabase /// The database where the query will be performed. This is passed so that we can reuse the same database to /// perform multiple bitwise operations. Doing this with the same connection will guarantee that performance /// is good. ///
destination RedisKey /// The destination key where the result should be stored. ///
keys RedisKey /// The keys where the data to be OR'd are located. ///
Результат Task

BitwiseOrAsync() публичный статический Метод

Perform a bitwise OR operation between multiple keys (containing string values) and store the result in the destination key.
http://redis.io/commands/bitop
public static BitwiseOrAsync ( IDatabase database, RedisKey destination, RedisKey keys, System.TimeSpan expire ) : Task
database IDatabase /// The database where the query will be performed. This is passed so that we can reuse the same database to /// perform multiple bitwise operations. Doing this with the same connection will guarantee that performance /// is good. ///
destination RedisKey /// The destination key where the result should be stored. ///
keys RedisKey /// The keys where the data to be OR'd are located. ///
expire System.TimeSpan /// An expiration lifetime. ///
Результат Task

BitwiseXOr() публичный статический Метод

Perform a bitwise XOR operation between multiple keys (containing string values) and store the result in the destination key.
http://redis.io/commands/bitop
public static BitwiseXOr ( IDatabase database, RedisKey destination, RedisKey keys ) : long
database IDatabase /// The database where the query will be performed. This is passed so that we can reuse the same database to /// perform multiple bitwise operations. Doing this with the same connection will guarantee that performance /// is good. ///
destination RedisKey /// The destination key where the result should be stored. ///
keys RedisKey /// The keys where the data to be XOR'd are located. ///
Результат long

BitwiseXOr() публичный статический Метод

Perform a bitwise XOR operation between multiple keys (containing string values) and store the result in the destination key.
http://redis.io/commands/bitop
public static BitwiseXOr ( IDatabase database, RedisKey destination, RedisKey keys, System.TimeSpan expires ) : long
database IDatabase /// The database where the query will be performed. This is passed so that we can reuse the same database to /// perform multiple bitwise operations. Doing this with the same connection will guarantee that performance /// is good. ///
destination RedisKey /// The destination key where the result should be stored. ///
keys RedisKey /// The keys where the data to be XOR'd are located. ///
expires System.TimeSpan /// An expiration lifetime. ///
Результат long

BitwiseXOrAsync() публичный статический Метод

Perform a bitwise XOR operation between multiple keys (containing string values) and store the result in the destination key.
http://redis.io/commands/bitop
public static BitwiseXOrAsync ( IDatabase database, RedisKey destination, RedisKey keys ) : Task
database IDatabase /// The database where the query will be performed. This is passed so that we can reuse the same database to /// perform multiple bitwise operations. Doing this with the same connection will guarantee that performance /// is good. ///
destination RedisKey /// The destination key where the result should be stored. ///
keys RedisKey /// The keys where the data to be XOR'd are located. ///
Результат Task

BitwiseXOrAsync() публичный статический Метод

Perform a bitwise XOR operation between multiple keys (containing string values) and store the result in the destination key.
http://redis.io/commands/bitop
public static BitwiseXOrAsync ( IDatabase database, RedisKey destination, RedisKey keys, System.TimeSpan expires ) : Task
database IDatabase /// The database where the query will be performed. This is passed so that we can reuse the same database to /// perform multiple bitwise operations. Doing this with the same connection will guarantee that performance /// is good. ///
destination RedisKey /// The destination key where the result should be stored. ///
keys RedisKey /// The keys where the data to be XOR'd are located. ///
expires System.TimeSpan /// An expiration lifetime. ///
Результат Task

Count() публичный статический Метод

Gets the count of active bits at the key supplied.
public static Count ( IDatabase database, RedisKey key, long eventId = -1 ) : long
database IDatabase /// The database where the query will be performed. This is passed so that we can reuse the same database to /// perform multiple bitwise operations. Doing this with the same connection will guarantee that performance /// is good. ///
key RedisKey /// The key. ///
eventId long /// You can optionally supply the id of the thing being interacted with, which will result in a count of either /// 0 or 1. ///
Результат long

Count() публичный статический Метод

Gets the count of active bits at the key supplied.
public static Count ( RedisKey key, long eventId = -1 ) : long
key RedisKey /// The key. ///
eventId long /// You can optionally supply the id of the thing being interacted with, which will result in a count of either /// 0 or 1. ///
Результат long

CountAsync() публичный статический Метод

Gets the count of active bits at the key supplied.
public static CountAsync ( IDatabase database, RedisKey key, long eventId = -1 ) : Task
database IDatabase /// The database where the query will be performed. This is passed so that we can reuse the same database to /// perform multiple bitwise operations. Doing this with the same connection will guarantee that performance /// is good. ///
key RedisKey /// The key. ///
eventId long /// You can optionally supply the id of the thing being interacted with, which will result in a count of either /// 0 or 1. ///
Результат Task

CountAsync() публичный статический Метод

Gets the count of active bits at the key supplied.
public static CountAsync ( RedisKey key, long eventId = -1 ) : Task
key RedisKey /// The key. ///
eventId long /// You can optionally supply the id of the thing being interacted with, which will result in a count of either /// 0 or 1. ///
Результат Task

Delete() публичный статический Метод

The delete.
public static Delete ( string category, string action, string dateTime ) : bool
category string /// Typically the object that was interacted with (e.g. button) ///
action string /// The type of interaction (e.g. click) ///
dateTime string /// The DateTime. ///
Результат bool

DeleteAsync() публичный статический Метод

The delete.
public static DeleteAsync ( string category, string action, string dateTime ) : Task
category string /// Typically the object that was interacted with (e.g. button) ///
action string /// The type of interaction (e.g. click) ///
dateTime string /// The DateTime. ///
Результат Task

Exists() публичный статический Метод

Determines if the key exists.
public static Exists ( IDatabase database, RedisKey key ) : bool
database IDatabase /// The database where the query will be performed. This is passed so that we can reuse the same database to /// perform multiple bitwise operations. Doing this with the same connection will guarantee that performance /// is good. ///
key RedisKey /// The key. ///
Результат bool

Exists() публичный статический Метод

Determines if the key exists.
public static Exists ( RedisKey key ) : bool
key RedisKey /// The key. ///
Результат bool

ExistsAsync() публичный статический Метод

Determines if the key exists.
public static ExistsAsync ( IDatabase database, RedisKey key ) : Task
database IDatabase /// The database where the query will be performed. This is passed so that we can reuse the same database to /// perform multiple bitwise operations. Doing this with the same connection will guarantee that performance /// is good. ///
key RedisKey /// The key. ///
Результат Task

ExistsAsync() публичный статический Метод

Determines if the key exists.
public static ExistsAsync ( RedisKey key ) : Task
key RedisKey /// The key. ///
Результат Task

GetCounts() публичный статический Метод

Gets counts by TimeInterval for the date range supplied.
/// This should never occur (unhandled TimeInterval). ///
public static GetCounts ( string category, string action, System.DateTime start, System.DateTime end, long eventId = -1, TimeInterval timeInterval = TimeInterval.FifteenMinutes, DayOfWeek firstDayOfWeek = DayOfWeek.Sunday ) : long>>.List
category string /// Typically the object that was interacted with (e.g. button) ///
action string /// The type of interaction (e.g. click) ///
start System.DateTime /// The starting DateTime, inclusive. ///
end System.DateTime /// The end. ///
eventId long /// You can optionally supply the id of the thing being interacted with, which will result in a count of just /// that event. ///
timeInterval TimeInterval /// The time interval. ///
firstDayOfWeek DayOfWeek /// The first day of week (only applies when doing TimeInterval.Week groupings). ///
Результат long>>.List

GetCountsAsync() публичный статический Метод

Gets counts by TimeInterval for the date range supplied.
/// This should never occur (unhandled TimeInterval). ///
public static GetCountsAsync ( string category, string action, System.DateTime start, System.DateTime end, long eventId = -1, TimeInterval timeInterval = TimeInterval.FifteenMinutes, DayOfWeek firstDayOfWeek = DayOfWeek.Sunday ) : long>>>.Task
category string /// Typically the object that was interacted with (e.g. button) ///
action string /// The type of interaction (e.g. click) ///
start System.DateTime /// The starting DateTime, inclusive. ///
end System.DateTime /// The end. ///
eventId long /// You can optionally supply the id of the thing being interacted with, which will result in a count of just /// that event. ///
timeInterval TimeInterval /// The time interval. ///
firstDayOfWeek DayOfWeek /// The first day of week (only applies when doing TimeInterval.Week groupings). ///
Результат long>>>.Task

GetDay() публичный статический Метод

Gets the key for the day covered by the DateTime supplied, creating the data at the key if necessary.
public static GetDay ( IDatabase database, string category, string action, System.DateTime dateTime ) : RedisKey
database IDatabase /// The database where the query will be performed. This is passed so that we can reuse the same database to /// perform multiple bitwise operations. Doing this with the same connection will guarantee that performance /// is good. ///
category string /// Typically the object that was interacted with (e.g. button) ///
action string /// The type of interaction (e.g. click) ///
dateTime System.DateTime /// The DateTime. ///
Результат RedisKey

GetDayAsync() публичный статический Метод

Gets the key for the day covered by the DateTime supplied, creating the data at the key if necessary.
public static GetDayAsync ( IDatabase database, string category, string action, System.DateTime dateTime ) : Task
database IDatabase /// The database where the query will be performed. This is passed so that we can reuse the same database to /// perform multiple bitwise operations. Doing this with the same connection will guarantee that performance /// is good. ///
category string /// Typically the object that was interacted with (e.g. button) ///
action string /// The type of interaction (e.g. click) ///
dateTime System.DateTime /// The DateTime. ///
Результат Task

GetFifteenMinutes() публичный статический Метод

Gets the key for the 15 minute interval covered by the DateTime supplied.
public static GetFifteenMinutes ( string category, string action, System.DateTime dateTime ) : RedisKey
category string /// Typically the object that was interacted with (e.g. button) ///
action string /// The type of interaction (e.g. click) ///
dateTime System.DateTime /// The DateTime. ///
Результат RedisKey

GetFifteenMinutesAsync() публичный статический Метод

Gets the key for the 15 minute interval covered by the DateTime supplied.
public static GetFifteenMinutesAsync ( string category, string action, System.DateTime dateTime ) : Task
category string /// Typically the object that was interacted with (e.g. button) ///
action string /// The type of interaction (e.g. click) ///
dateTime System.DateTime /// The DateTime. ///
Результат Task

GetHour() публичный статический Метод

Gets the key for the hour covered by the DateTime supplied, creating the data at the key if necessary.
public static GetHour ( IDatabase database, string category, string action, System.DateTime dateTime ) : RedisKey
database IDatabase /// The database where the query will be performed. This is passed so that we can reuse the same database to /// perform multiple bitwise operations. Doing this with the same connection will guarantee that performance /// is good. ///
category string /// Typically the object that was interacted with (e.g. button) ///
action string /// The type of interaction (e.g. click) ///
dateTime System.DateTime /// The DateTime. ///
Результат RedisKey

GetHourAsync() публичный статический Метод

Gets the key for the hour covered by the DateTime supplied, creating the data at the key if necessary.
public static GetHourAsync ( IDatabase database, string category, string action, System.DateTime dateTime ) : Task
database IDatabase /// The database where the query will be performed. This is passed so that we can reuse the same database to /// perform multiple bitwise operations. Doing this with the same connection will guarantee that performance /// is good. ///
category string /// Typically the object that was interacted with (e.g. button) ///
action string /// The type of interaction (e.g. click) ///
dateTime System.DateTime /// The DateTime. ///
Результат Task

GetMinKeysForRange() публичный статический Метод

Gets the fewest number of keys required to cover the date range supplied.
public static GetMinKeysForRange ( IDatabase database, string category, string action, System.DateTime start, System.DateTime end, TimeInterval timeInterval = TimeInterval.FifteenMinutes ) : RedisKey[]
database IDatabase /// The database where the query will be performed. This is passed so that we can reuse the same database to /// perform multiple bitwise operations. Doing this with the same connection will guarantee that performance /// is good. ///
category string /// Typically the object that was interacted with (e.g. button) ///
action string /// The type of interaction (e.g. click) ///
start System.DateTime /// The starting DateTime, inclusive. ///
end System.DateTime /// The ending DateTime, exclusive. ///
timeInterval TimeInterval /// The accuracy at which we want the data. For example, setting this to TimeInterval.OneDay means there won't /// be any keys at the fifteen minute or one hour levels, so if the DateTime is for the /// middle of a day, it'll include the entire day. ///
Результат RedisKey[]

GetMinKeysForRangeAsync() публичный статический Метод

Gets the fewest number of keys required to cover the date range supplied.
public static GetMinKeysForRangeAsync ( IDatabase database, string category, string action, System.DateTime start, System.DateTime end, TimeInterval timeInterval = TimeInterval.FifteenMinutes ) : Task
database IDatabase /// The database where the query will be performed. This is passed so that we can reuse the same database to /// perform multiple bitwise operations. Doing this with the same connection will guarantee that performance /// is good. ///
category string /// Typically the object that was interacted with (e.g. button) ///
action string /// The type of interaction (e.g. click) ///
start System.DateTime /// The starting DateTime, inclusive. ///
end System.DateTime /// The ending DateTime, exclusive. ///
timeInterval TimeInterval /// The accuracy at which we want the data. For example, setting this to TimeInterval.OneDay means there won't /// be any keys at the fifteen minute or one hour levels, so if the DateTime is for the /// middle of a day, it'll include the entire day. ///
Результат Task

GetMonth() публичный статический Метод

Gets the key for the month covered by the DateTime supplied, creating the data at the key if necessary.
public static GetMonth ( IDatabase database, string category, string action, System.DateTime dateTime ) : RedisKey
database IDatabase /// The database where the query will be performed. This is passed so that we can reuse the same database to /// perform multiple bitwise operations. Doing this with the same connection will guarantee that performance /// is good. ///
category string /// Typically the object that was interacted with (e.g. button) ///
action string /// The type of interaction (e.g. click) ///
dateTime System.DateTime /// The DateTime. ///
Результат RedisKey

GetMonthAsync() публичный статический Метод

Gets the key for the month covered by the DateTime supplied, creating the data at the key if necessary.
public static GetMonthAsync ( IDatabase database, string category, string action, System.DateTime dateTime ) : Task
database IDatabase /// The database where the query will be performed. This is passed so that we can reuse the same database to /// perform multiple bitwise operations. Doing this with the same connection will guarantee that performance /// is good. ///
category string /// Typically the object that was interacted with (e.g. button) ///
action string /// The type of interaction (e.g. click) ///
dateTime System.DateTime /// The DateTime. ///
Результат Task

GetQuarter() публичный статический Метод

Gets the keys for the months in the quarter covered by the DateTime supplied, creating the data at the key if necessary.
public static GetQuarter ( IDatabase database, string category, string action, System.DateTime dateTime ) : RedisKey
database IDatabase /// The database where the query will be performed. This is passed so that we can reuse the same database to /// perform multiple bitwise operations. Doing this with the same connection will guarantee that performance /// is good. ///
category string /// Typically the object that was interacted with (e.g. button) ///
action string /// The type of interaction (e.g. click) ///
dateTime System.DateTime /// The DateTime. ///
Результат RedisKey

GetQuarterAsync() публичный статический Метод

Gets the keys for the months in the quarter covered by the DateTime supplied, creating the data at the key if necessary.
public static GetQuarterAsync ( IDatabase database, string category, string action, System.DateTime dateTime ) : Task
database IDatabase /// The database where the query will be performed. This is passed so that we can reuse the same database to /// perform multiple bitwise operations. Doing this with the same connection will guarantee that performance /// is good. ///
category string /// Typically the object that was interacted with (e.g. button) ///
action string /// The type of interaction (e.g. click) ///
dateTime System.DateTime /// The DateTime. ///
Результат Task

GetWeek() публичный статический Метод

The get week.
public static GetWeek ( IDatabase database, string category, string action, System.DateTime dateTime, DayOfWeek firstDayOfWeek = DayOfWeek.Sunday ) : RedisKey
database IDatabase /// The database where the query will be performed. This is passed so that we can reuse the same database to /// perform multiple bitwise operations. Doing this with the same connection will guarantee that performance /// is good. ///
category string /// Typically the object that was interacted with (e.g. button) ///
action string /// The type of interaction (e.g. click) ///
dateTime System.DateTime /// The DateTime. ///
firstDayOfWeek DayOfWeek /// The first day to start each week. Defaults to Sunday which is used in the US, CA, and JP. You can /// change it to Monday to get weekly aggregates which are accurate for other countries, but it'll double /// the weekly data stored. ///
Результат RedisKey

GetWeekAsync() публичный статический Метод

The get week.
public static GetWeekAsync ( IDatabase database, string category, string action, System.DateTime dateTime, DayOfWeek firstDayOfWeek = DayOfWeek.Sunday ) : Task
database IDatabase /// The database where the query will be performed. This is passed so that we can reuse the same database to /// perform multiple bitwise operations. Doing this with the same connection will guarantee that performance /// is good. ///
category string /// Typically the object that was interacted with (e.g. button) ///
action string /// The type of interaction (e.g. click) ///
dateTime System.DateTime /// The DateTime. ///
firstDayOfWeek DayOfWeek /// The first day to start each week. Defaults to Sunday which is used in the US, CA, and JP. You can /// change it to Monday to get weekly aggregates which are accurate for other countries, but it'll double /// the weekly data stored. ///
Результат Task

HasEvent() публичный статический Метод

Determines if an event occured.
public static HasEvent ( string category, string action, long eventId, System.DateTime start = default(DateTime), System.DateTime end = default(DateTime) ) : bool
category string /// Typically the object that was interacted with (e.g. button) ///
action string /// The type of interaction (e.g. click) ///
eventId long /// The id of the thing being interacted with. ///
start System.DateTime /// The start of the period we're interested in, defaulting to now. ///
end System.DateTime /// The end of the period we're interested in, defaulting to now. ///
Результат bool

HasEventAsync() публичный статический Метод

Determines if an event occured.
public static HasEventAsync ( string category, string action, long eventId, System.DateTime start = default(DateTime), System.DateTime end = default(DateTime) ) : Task
category string /// Typically the object that was interacted with (e.g. button) ///
action string /// The type of interaction (e.g. click) ///
eventId long /// The id of the thing being interacted with. ///
start System.DateTime /// The start of the period we're interested in, defaulting to now. ///
end System.DateTime /// The end of the period we're interested in, defaulting to now. ///
Результат Task

TrackEvent() публичный статический Метод

Tracks an event.
public static TrackEvent ( string category, string action, long eventId, TimePrecision precision = TimePrecision.OneDay, System.DateTime now = default(DateTime) ) : void
category string /// Typically the object that was interacted with (e.g. button) ///
action string /// The type of interaction (e.g. click) ///
eventId long /// The id of the thing being interacted with. ///
precision TimePrecision /// The precision that this event should be tracked at. ///
now System.DateTime /// The now. ///
Результат void

TrackEventAsync() публичный статический Метод

Tracks an event.
public static TrackEventAsync ( string category, string action, long eventId, TimePrecision precision = TimePrecision.OneDay, System.DateTime now = default(DateTime) ) : System.Threading.Tasks.Task
category string /// Typically the object that was interacted with (e.g. button) ///
action string /// The type of interaction (e.g. click) ///
eventId long /// The id of the thing being interacted with. ///
precision TimePrecision /// The precision that this event should be tracked at. ///
now System.DateTime /// The now. ///
Результат System.Threading.Tasks.Task