1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-24 05:17:03 +00:00

replace the redis library we used with another one, no performance differences but most options for connections pooling and read/write/connect timeout (two config fields are changed as well)

relative to: https://github.com/kataras/iris/issues/1285


Former-commit-id: c20530cd67144ab8d1c9325807fe5c13268fa428
This commit is contained in:
Gerasimos (Makis) Maropoulos
2019-06-22 14:46:20 +03:00
parent 1f9ead426e
commit b71d4032e6
11 changed files with 419 additions and 444 deletions

View File

@@ -25,7 +25,7 @@ type AmberEngine struct {
templateCache map[string]*template.Template
}
var _ Engine = &AmberEngine{}
var _ Engine = (*AmberEngine)(nil)
// Amber creates and returns a new amber view engine.
func Amber(directory, extension string) *AmberEngine {
@@ -77,7 +77,7 @@ func (s *AmberEngine) AddFunc(funcName string, funcBody interface{}) {
}
// Load parses the templates to the engine.
// It's alos responsible to add the necessary global functions.
// It is responsible to add the necessary global functions.
//
// Returns an error if something bad happens, user is responsible to catch it.
func (s *AmberEngine) Load() error {