1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-17 18:07:01 +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

@@ -88,7 +88,7 @@ func (dal *tDjangoAssetLoader) Get(path string) (io.Reader, error) {
return bytes.NewBuffer(res), nil
}
// DjangoEngine contains the amber view engine structure.
// DjangoEngine contains the django view engine structure.
type DjangoEngine struct {
// files configuration
directory string
@@ -106,7 +106,7 @@ type DjangoEngine struct {
templateCache map[string]*pongo2.Template
}
var _ Engine = &DjangoEngine{}
var _ Engine = (*DjangoEngine)(nil)
// Django creates and returns a new amber view engine.
func Django(directory, extension string) *DjangoEngine {
@@ -195,7 +195,7 @@ func (s *DjangoEngine) RegisterTag(tagName string, fn TagParser) error {
}
// 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 *DjangoEngine) Load() error {