SHANGHAI — China’s central bank is putting the largest amount of cash into the financial system in nearly three years, using a weekly market operation to pre-empt a holiday-induced funding squeeze and offset rapid capital outflows.

The People’s Bank of China offered 340 billion yuan ($51.89 billion) of short-term loans, known as reverse repurchase agreements, to commercial banks in a routine money market operation Thursday.