You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-6Lines changed: 7 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,8 +57,9 @@ return [
57
57
'database' => env('DB_DATABASE', 'mydatabase'),
58
58
'username' => env('DB_USERNAME', 'user'),
59
59
'password' => env('DB_PASSWORD', 'password'),
60
-
'charset' => 'utf8', // Experimental yet, prefer use the `DB_CHARSET` and `APPLICATION_CHARSET`
60
+
'charset' => 'utf8',
61
61
'prefix' => '',
62
+
'cache' => true // By default it caches on all connections, if you want some connection not remembered assign `false` (Recommended when modification is performed on tables frequently [development])
62
63
],
63
64
64
65
...
@@ -96,19 +97,19 @@ The file is usualy found in **/etc/freetds/freetds.conf**. Set the configuration
96
97
```
97
98
98
99
## Configuring the charset between the database and the application
99
-
To configure the charset between the database and the application, add the fields `DB_CHARSET` and `APPLICATION_CHARSET` in `.env` file, see the following example:
100
+
To configure the charset between the database and the application, add the fields `DATABASE_CHARSET` and `APPLICATION_CHARSET` in `.env` file, see the following example:
100
101
101
102
```env
102
-
DB_CHARSET=CP850
103
+
DATABASE_CHARSET=CP850
103
104
APPLICATION_CHARSET=UTF8
104
105
```
105
106
## Configuring the cache
106
107
As the library consults table information whenever it receives a request, caching can be used to avoid excessive queries
107
108
108
-
To use the cache, add the fields `SYBASE_CACHE_COLUMNS` and `SYBASE_CACHE_COLUMNS_TIME` to the `.env` file, see the following example:
109
+
To use the cache, add the fields `SYBASE_CACHE_TABLES` and `SYBASE_CACHE_TABLES_TIME` to the `.env` file, see the following example:
109
110
```dotenv
110
-
SYBASE_CACHE_COLUMNS=true
111
-
SYBASE_CACHE_COLUMNS_TIME=3600 # cache table information by `3600` seconds
111
+
SYBASE_CACHE_TABLES=true
112
+
SYBASE_CACHE_TABLES_TIME=3600 # cache table information by `3600` seconds
0 commit comments