/GoA2sCache

GoLang packet caching system that will retrieve cached packets when queried.

Primary LanguageGo

GoCache

GoLang packet caching system that will retrieve cached packets when queried.

Example Cache.json Output

{
  "127.0.0.1:28017": "/////0kRTmFtZSBvZiBTZXJ2ZXIgYXMgU2hvd24gb24gdGhlIENsaWVudCBTZXJ2ZXIgTGlzdABQcm9jZWR1cmFsIE1hcABydXN0AFJ1c3QAAAAACgBkdwABMjM3NwCxb20G4NWknllAAW1wMTAsY3AwLHB0cmFrLHFwMCx2MjM3NyxoNDI4NjA4ZWQsc3Rvayxib3JuMTY3ODgzODQxNyxnbXJ1c3QAStoDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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