()
| 60 | } |
| 61 | |
| 62 | func XMLCacheInit() { |
| 63 | gc := gcache.New(50) |
| 64 | // Short cache expiration because we each line we read is different, but we can call multiple times XML helpers on each of them |
| 65 | gc.Expiration(5 * time.Second) |
| 66 | gc = gc.LRU() |
| 67 | |
| 68 | xmlDocumentCache = gc.Build() |
| 69 | } |
| 70 | |
| 71 | // func XMLGetAttributeValue(xmlString string, path string, attributeName string) string { |
| 72 | func XMLGetAttributeValue(params ...any) (any, error) { |