-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAlgorithms5.cs
More file actions
27 lines (24 loc) · 847 Bytes
/
Algorithms5.cs
File metadata and controls
27 lines (24 loc) · 847 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
using System.Collections.Generic;
namespace AlgorithmAnalysis
{
class Algorithms5
{
// Record should be indexed by the combination of pk_1 and pk_2 (each are part of the "primary key").
public class Record
{
public int PK_1 { get; set; }
public int PK_2 { get; set; }
public string Value { get; set; }
}
// Create an effecient cache of records as a field.
// The structure of a cache should not be a .NET MemoryCache. Use your own data structure.
public void LoadRecordsIntoCache(IEnumerable<Record> records)
{
}
public Record GetRecord(int pk_1, int pk_2)
{
// Implement GetRecord. Need to retrieve value from the cache. Retrieval should be very fast.
return null;
}
}
}